Skip to content

Commit bef8a43

Browse files
committed
fix type alias
1 parent 6ba2162 commit bef8a43

28 files changed

+63
-92
lines changed

generator/src/main/resources/line-bot-sdk-nodejs-generator/model.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { {{modelName}} } from './models';
1212

1313
export type {{classname}} =
1414
{{#mappedModels}}
15-
| {{modelName}} // {{mappingName}}
15+
{{^-first}}| {{/-first}}{{modelName}} // {{mappingName}}
1616
{{/mappedModels}}
1717
| Unknown{{classname}}
1818
;
@@ -54,7 +54,7 @@ export namespace {{classname}} {
5454
export type {{enumName}} =
5555
{{#allowableValues}}
5656
{{#enumVars}}
57-
{{^-last}}| {{/-last}}{{{value}}}
57+
{{^-first}}| {{/-first}}{{{value}}}
5858
{{/enumVars}}
5959
{{/allowableValues}}
6060
;

lib/insight/model/ageTile.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ export namespace AgeTile {
3131
| "from35to39"
3232
| "from40to44"
3333
| "from45to49"
34-
| "from50";
35-
"unknown";
34+
| "from50"
35+
| "unknown";
3636
}

lib/insight/model/appTypeTile.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,5 @@ export type AppTypeTile = {
2222
};
2323

2424
export namespace AppTypeTile {
25-
export type AppTypeEnum = "ios" | "android";
26-
"others";
25+
export type AppTypeEnum = "ios" | "android" | "others";
2726
}

lib/insight/model/genderTile.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,5 @@ export type GenderTile = {
2222
};
2323

2424
export namespace GenderTile {
25-
export type GenderEnum = "male" | "female";
26-
"unknown";
25+
export type GenderEnum = "male" | "female" | "unknown";
2726
}

lib/insight/model/getNumberOfFollowersResponse.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,5 @@ export type GetNumberOfFollowersResponse = {
4141
};
4242

4343
export namespace GetNumberOfFollowersResponse {
44-
export type StatusEnum = "ready" | "unready";
45-
"out_of_service";
44+
export type StatusEnum = "ready" | "unready" | "out_of_service";
4645
}

lib/insight/model/getNumberOfMessageDeliveriesResponse.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,5 @@ export type GetNumberOfMessageDeliveriesResponse = {
8383
};
8484

8585
export namespace GetNumberOfMessageDeliveriesResponse {
86-
export type StatusEnum = "ready" | "unready";
87-
"out_of_service";
86+
export type StatusEnum = "ready" | "unready" | "out_of_service";
8887
}

lib/insight/model/subscriptionPeriodTile.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ export namespace SubscriptionPeriodTile {
2828
| "within90days"
2929
| "within180days"
3030
| "within365days"
31-
| "over365days";
32-
"unknown";
31+
| "over365days"
32+
| "unknown";
3333
}

lib/liff/model/liffView.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,5 @@ export type LiffView = {
3232
};
3333

3434
export namespace LiffView {
35-
export type TypeEnum = "compact" | "tall";
36-
"full";
35+
export type TypeEnum = "compact" | "tall" | "full";
3736
}

lib/manage-audience/model/createAudienceGroupResponse.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,5 @@ export type CreateAudienceGroupResponse = {
6666

6767
export namespace CreateAudienceGroupResponse {
6868
export type CreateRouteEnum = "MESSAGING_API";
69-
export type PermissionEnum = "READ";
70-
"READ_WRITE";
69+
export type PermissionEnum = "READ" | "READ_WRITE";
7170
}

lib/manage-audience/model/createClickBasedAudienceGroupResponse.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,5 @@ export type CreateClickBasedAudienceGroupResponse = {
7878

7979
export namespace CreateClickBasedAudienceGroupResponse {
8080
export type CreateRouteEnum = "MESSAGING_API";
81-
export type PermissionEnum = "READ";
82-
"READ_WRITE";
81+
export type PermissionEnum = "READ" | "READ_WRITE";
8382
}

0 commit comments

Comments
 (0)