@widgetic/api-sdk-ts 2.0.0 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/apis/BrandKitApi.d.ts +4 -4
  2. package/dist/apis/BrandKitApi.js +4 -4
  3. package/dist/apis/TokensApi.d.ts +2 -0
  4. package/dist/apis/TokensApi.js +2 -0
  5. package/dist/esm/apis/BrandKitApi.js +4 -4
  6. package/dist/esm/apis/TokensApi.js +2 -0
  7. package/dist/esm/models/BrandKitTokens.js +3 -0
  8. package/dist/esm/models/BrandTextStyle.js +65 -0
  9. package/dist/esm/models/GetOperationResponseData.js +3 -2
  10. package/dist/esm/models/GetOperationResponseDataMetadata.js +58 -0
  11. package/dist/esm/models/PatchBrandKitRequest.js +3 -0
  12. package/dist/esm/models/WidgetClarification.js +52 -0
  13. package/dist/esm/models/WidgetClarificationOption.js +51 -0
  14. package/dist/esm/models/WidgetClarificationQuestion.js +60 -0
  15. package/dist/esm/models/WidgetNextStep.js +67 -0
  16. package/dist/esm/models/WidgetPlan.js +61 -0
  17. package/dist/esm/models/WidgetPlanDecisions.js +72 -0
  18. package/dist/esm/models/WidgetPlanDecisionsAdaptersInner.js +47 -0
  19. package/dist/esm/models/WidgetPlanDecisionsLibrariesInner.js +51 -0
  20. package/dist/esm/models/WidgetPlanDecisionsResponsive.js +51 -0
  21. package/dist/esm/models/WidgetPlanTask.js +80 -0
  22. package/dist/esm/models/index.js +12 -0
  23. package/dist/esm/runtime.js +1 -1
  24. package/dist/models/BrandKitTokens.d.ts +8 -1
  25. package/dist/models/BrandKitTokens.js +3 -0
  26. package/dist/models/BrandKitView.d.ts +1 -1
  27. package/dist/models/BrandTextStyle.d.ts +59 -0
  28. package/dist/models/BrandTextStyle.js +73 -0
  29. package/dist/models/GetOperationResponseData.d.ts +3 -5
  30. package/dist/models/GetOperationResponseData.js +3 -2
  31. package/dist/models/GetOperationResponseDataMetadata.d.ts +65 -0
  32. package/dist/models/GetOperationResponseDataMetadata.js +66 -0
  33. package/dist/models/PatchBrandKitRequest.d.ts +7 -0
  34. package/dist/models/PatchBrandKitRequest.js +3 -0
  35. package/dist/models/WidgetClarification.d.ts +45 -0
  36. package/dist/models/WidgetClarification.js +59 -0
  37. package/dist/models/WidgetClarificationOption.d.ts +44 -0
  38. package/dist/models/WidgetClarificationOption.js +58 -0
  39. package/dist/models/WidgetClarificationQuestion.d.ts +57 -0
  40. package/dist/models/WidgetClarificationQuestion.js +67 -0
  41. package/dist/models/WidgetNextStep.d.ts +63 -0
  42. package/dist/models/WidgetNextStep.js +75 -0
  43. package/dist/models/WidgetPlan.d.ts +58 -0
  44. package/dist/models/WidgetPlan.js +68 -0
  45. package/dist/models/WidgetPlanDecisions.d.ts +77 -0
  46. package/dist/models/WidgetPlanDecisions.js +79 -0
  47. package/dist/models/WidgetPlanDecisionsAdaptersInner.d.ts +38 -0
  48. package/dist/models/WidgetPlanDecisionsAdaptersInner.js +54 -0
  49. package/dist/models/WidgetPlanDecisionsLibrariesInner.d.ts +44 -0
  50. package/dist/models/WidgetPlanDecisionsLibrariesInner.js +58 -0
  51. package/dist/models/WidgetPlanDecisionsResponsive.d.ts +44 -0
  52. package/dist/models/WidgetPlanDecisionsResponsive.js +58 -0
  53. package/dist/models/WidgetPlanTask.d.ts +77 -0
  54. package/dist/models/WidgetPlanTask.js +88 -0
  55. package/dist/models/index.d.ts +12 -0
  56. package/dist/models/index.js +12 -0
  57. package/dist/runtime.d.ts +2 -2
  58. package/dist/runtime.js +1 -1
  59. package/package.json +1 -1
@@ -76,12 +76,12 @@ export declare class BrandKitApi extends runtime.BaseAPI {
76
76
  */
77
77
  getBrandKit(requestParameters?: GetBrandKitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BrandKitViewResponse>;
78
78
  /**
79
- * Changes only what is sent: the colors, a font role, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit. An account that never saved a kit starts from Widgetic\'s default one. The response lists what is worth fixing in `warnings`.
79
+ * Changes only what is sent: the colors, a font role, the text styles, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit, text styles included. An account that never saved a kit starts from Widgetic\'s default one. The response lists what is worth fixing in `warnings`.
80
80
  * Change part of the Brand Kit
81
81
  */
82
82
  patchBrandKitRaw(requestParameters: PatchBrandKitOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BrandKitViewResponse>>;
83
83
  /**
84
- * Changes only what is sent: the colors, a font role, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit. An account that never saved a kit starts from Widgetic\'s default one. The response lists what is worth fixing in `warnings`.
84
+ * Changes only what is sent: the colors, a font role, the text styles, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit, text styles included. An account that never saved a kit starts from Widgetic\'s default one. The response lists what is worth fixing in `warnings`.
85
85
  * Change part of the Brand Kit
86
86
  */
87
87
  patchBrandKit(requestParameters: PatchBrandKitOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BrandKitViewResponse>;
@@ -110,12 +110,12 @@ export declare class BrandKitApi extends runtime.BaseAPI {
110
110
  */
111
111
  postBrandKitIcon(requestParameters: PostBrandKitIconOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BrandKitViewResponse>;
112
112
  /**
113
- * Replaces the colors, fonts, spacing and notes of the kit with the ones sent. To change one thing, use PATCH.
113
+ * Replaces the colors, fonts, text styles, spacing and notes of the kit with the ones sent, so text styles left out of the body are removed. To change one thing, use PATCH.
114
114
  * Save Brand Kit tokens
115
115
  */
116
116
  putBrandKitRaw(requestParameters: PutBrandKitOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BrandKitViewResponse>>;
117
117
  /**
118
- * Replaces the colors, fonts, spacing and notes of the kit with the ones sent. To change one thing, use PATCH.
118
+ * Replaces the colors, fonts, text styles, spacing and notes of the kit with the ones sent, so text styles left out of the body are removed. To change one thing, use PATCH.
119
119
  * Save Brand Kit tokens
120
120
  */
121
121
  putBrandKit(requestParameters: PutBrandKitOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BrandKitViewResponse>;
@@ -152,7 +152,7 @@ class BrandKitApi extends runtime.BaseAPI {
152
152
  return await response.value();
153
153
  }
154
154
  /**
155
- * Changes only what is sent: the colors, a font role, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit. An account that never saved a kit starts from Widgetic\'s default one. The response lists what is worth fixing in `warnings`.
155
+ * Changes only what is sent: the colors, a font role, the text styles, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit, text styles included. An account that never saved a kit starts from Widgetic\'s default one. The response lists what is worth fixing in `warnings`.
156
156
  * Change part of the Brand Kit
157
157
  */
158
158
  async patchBrandKitRaw(requestParameters, initOverrides) {
@@ -182,7 +182,7 @@ class BrandKitApi extends runtime.BaseAPI {
182
182
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BrandKitViewResponseFromJSON)(jsonValue));
183
183
  }
184
184
  /**
185
- * Changes only what is sent: the colors, a font role, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit. An account that never saved a kit starts from Widgetic\'s default one. The response lists what is worth fixing in `warnings`.
185
+ * Changes only what is sent: the colors, a font role, the text styles, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit, text styles included. An account that never saved a kit starts from Widgetic\'s default one. The response lists what is worth fixing in `warnings`.
186
186
  * Change part of the Brand Kit
187
187
  */
188
188
  async patchBrandKit(requestParameters, initOverrides) {
@@ -333,7 +333,7 @@ class BrandKitApi extends runtime.BaseAPI {
333
333
  return await response.value();
334
334
  }
335
335
  /**
336
- * Replaces the colors, fonts, spacing and notes of the kit with the ones sent. To change one thing, use PATCH.
336
+ * Replaces the colors, fonts, text styles, spacing and notes of the kit with the ones sent, so text styles left out of the body are removed. To change one thing, use PATCH.
337
337
  * Save Brand Kit tokens
338
338
  */
339
339
  async putBrandKitRaw(requestParameters, initOverrides) {
@@ -363,7 +363,7 @@ class BrandKitApi extends runtime.BaseAPI {
363
363
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BrandKitViewResponseFromJSON)(jsonValue));
364
364
  }
365
365
  /**
366
- * Replaces the colors, fonts, spacing and notes of the kit with the ones sent. To change one thing, use PATCH.
366
+ * Replaces the colors, fonts, text styles, spacing and notes of the kit with the ones sent, so text styles left out of the body are removed. To change one thing, use PATCH.
367
367
  * Save Brand Kit tokens
368
368
  */
369
369
  async putBrandKit(requestParameters, initOverrides) {
@@ -16,10 +16,12 @@ import type { ValidateToken200Response } from '../models/index';
16
16
  */
17
17
  export declare class TokensApi extends runtime.BaseAPI {
18
18
  /**
19
+ * Describes the credential the request was made with: how it signs in (`tokenType`), what it may do (`scopes`) and the account it belongs to (`userId`). A credential that belongs to the platform itself, and not to a customer\'s account, is held to no scope: it is answered with `tokenType` `service_key`, `scopes` `[\"*:*\"]` and no `userId`.
19
20
  * Validate current authentication token
20
21
  */
21
22
  validateTokenRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ValidateToken200Response>>;
22
23
  /**
24
+ * Describes the credential the request was made with: how it signs in (`tokenType`), what it may do (`scopes`) and the account it belongs to (`userId`). A credential that belongs to the platform itself, and not to a customer\'s account, is held to no scope: it is answered with `tokenType` `service_key`, `scopes` `[\"*:*\"]` and no `userId`.
23
25
  * Validate current authentication token
24
26
  */
25
27
  validateToken(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ValidateToken200Response>;
@@ -54,6 +54,7 @@ const index_1 = require("../models/index");
54
54
  */
55
55
  class TokensApi extends runtime.BaseAPI {
56
56
  /**
57
+ * Describes the credential the request was made with: how it signs in (`tokenType`), what it may do (`scopes`) and the account it belongs to (`userId`). A credential that belongs to the platform itself, and not to a customer\'s account, is held to no scope: it is answered with `tokenType` `service_key`, `scopes` `[\"*:*\"]` and no `userId`.
57
58
  * Validate current authentication token
58
59
  */
59
60
  async validateTokenRaw(initOverrides) {
@@ -78,6 +79,7 @@ class TokensApi extends runtime.BaseAPI {
78
79
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ValidateToken200ResponseFromJSON)(jsonValue));
79
80
  }
80
81
  /**
82
+ * Describes the credential the request was made with: how it signs in (`tokenType`), what it may do (`scopes`) and the account it belongs to (`userId`). A credential that belongs to the platform itself, and not to a customer\'s account, is held to no scope: it is answered with `tokenType` `service_key`, `scopes` `[\"*:*\"]` and no `userId`.
81
83
  * Validate current authentication token
82
84
  */
83
85
  async validateToken(initOverrides) {
@@ -116,7 +116,7 @@ export class BrandKitApi extends runtime.BaseAPI {
116
116
  return await response.value();
117
117
  }
118
118
  /**
119
- * Changes only what is sent: the colors, a font role, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit. An account that never saved a kit starts from Widgetic\'s default one. The response lists what is worth fixing in `warnings`.
119
+ * Changes only what is sent: the colors, a font role, the text styles, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit, text styles included. An account that never saved a kit starts from Widgetic\'s default one. The response lists what is worth fixing in `warnings`.
120
120
  * Change part of the Brand Kit
121
121
  */
122
122
  async patchBrandKitRaw(requestParameters, initOverrides) {
@@ -146,7 +146,7 @@ export class BrandKitApi extends runtime.BaseAPI {
146
146
  return new runtime.JSONApiResponse(response, (jsonValue) => BrandKitViewResponseFromJSON(jsonValue));
147
147
  }
148
148
  /**
149
- * Changes only what is sent: the colors, a font role, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit. An account that never saved a kit starts from Widgetic\'s default one. The response lists what is worth fixing in `warnings`.
149
+ * Changes only what is sent: the colors, a font role, the text styles, a spacing step, one corner radius (0 for square corners) or the style notes, and keeps the rest of the saved kit, text styles included. An account that never saved a kit starts from Widgetic\'s default one. The response lists what is worth fixing in `warnings`.
150
150
  * Change part of the Brand Kit
151
151
  */
152
152
  async patchBrandKit(requestParameters, initOverrides) {
@@ -297,7 +297,7 @@ export class BrandKitApi extends runtime.BaseAPI {
297
297
  return await response.value();
298
298
  }
299
299
  /**
300
- * Replaces the colors, fonts, spacing and notes of the kit with the ones sent. To change one thing, use PATCH.
300
+ * Replaces the colors, fonts, text styles, spacing and notes of the kit with the ones sent, so text styles left out of the body are removed. To change one thing, use PATCH.
301
301
  * Save Brand Kit tokens
302
302
  */
303
303
  async putBrandKitRaw(requestParameters, initOverrides) {
@@ -327,7 +327,7 @@ export class BrandKitApi extends runtime.BaseAPI {
327
327
  return new runtime.JSONApiResponse(response, (jsonValue) => BrandKitViewResponseFromJSON(jsonValue));
328
328
  }
329
329
  /**
330
- * Replaces the colors, fonts, spacing and notes of the kit with the ones sent. To change one thing, use PATCH.
330
+ * Replaces the colors, fonts, text styles, spacing and notes of the kit with the ones sent, so text styles left out of the body are removed. To change one thing, use PATCH.
331
331
  * Save Brand Kit tokens
332
332
  */
333
333
  async putBrandKit(requestParameters, initOverrides) {
@@ -18,6 +18,7 @@ import { ValidateToken200ResponseFromJSON, } from '../models/index.js';
18
18
  */
19
19
  export class TokensApi extends runtime.BaseAPI {
20
20
  /**
21
+ * Describes the credential the request was made with: how it signs in (`tokenType`), what it may do (`scopes`) and the account it belongs to (`userId`). A credential that belongs to the platform itself, and not to a customer\'s account, is held to no scope: it is answered with `tokenType` `service_key`, `scopes` `[\"*:*\"]` and no `userId`.
21
22
  * Validate current authentication token
22
23
  */
23
24
  async validateTokenRaw(initOverrides) {
@@ -42,6 +43,7 @@ export class TokensApi extends runtime.BaseAPI {
42
43
  return new runtime.JSONApiResponse(response, (jsonValue) => ValidateToken200ResponseFromJSON(jsonValue));
43
44
  }
44
45
  /**
46
+ * Describes the credential the request was made with: how it signs in (`tokenType`), what it may do (`scopes`) and the account it belongs to (`userId`). A credential that belongs to the platform itself, and not to a customer\'s account, is held to no scope: it is answered with `tokenType` `service_key`, `scopes` `[\"*:*\"]` and no `userId`.
45
47
  * Validate current authentication token
46
48
  */
47
49
  async validateToken(initOverrides) {
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { BrandTextStyleFromJSON, BrandTextStyleToJSON, } from './BrandTextStyle.js';
14
15
  import { BrandSpacingFromJSON, BrandSpacingToJSON, } from './BrandSpacing.js';
15
16
  import { BrandColorFromJSON, BrandColorToJSON, } from './BrandColor.js';
16
17
  import { BrandKitTokensFontsFromJSON, BrandKitTokensFontsToJSON, } from './BrandKitTokensFonts.js';
@@ -36,6 +37,7 @@ export function BrandKitTokensFromJSONTyped(json, ignoreDiscriminator) {
36
37
  return {
37
38
  'colors': (json['colors'].map(BrandColorFromJSON)),
38
39
  'fonts': BrandKitTokensFontsFromJSON(json['fonts']),
40
+ 'textStyles': json['textStyles'] == null ? undefined : (json['textStyles'].map(BrandTextStyleFromJSON)),
39
41
  'spacing': BrandSpacingFromJSON(json['spacing']),
40
42
  'instructions': json['instructions'] == null ? undefined : json['instructions'],
41
43
  };
@@ -50,6 +52,7 @@ export function BrandKitTokensToJSONTyped(value, ignoreDiscriminator = false) {
50
52
  return {
51
53
  'colors': (value['colors'].map(BrandColorToJSON)),
52
54
  'fonts': BrandKitTokensFontsToJSON(value['fonts']),
55
+ 'textStyles': value['textStyles'] == null ? undefined : (value['textStyles'].map(BrandTextStyleToJSON)),
53
56
  'spacing': BrandSpacingToJSON(value['spacing']),
54
57
  'instructions': value['instructions'],
55
58
  };
@@ -0,0 +1,65 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Widgetic API Gateway
5
+ * API documentation for the Widgetic API Gateway
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ */
17
+ export const BrandTextStyleWeightEnum = {
18
+ NUMBER_100: 100,
19
+ NUMBER_200: 200,
20
+ NUMBER_300: 300,
21
+ NUMBER_400: 400,
22
+ NUMBER_500: 500,
23
+ NUMBER_600: 600,
24
+ NUMBER_700: 700,
25
+ NUMBER_800: 800,
26
+ NUMBER_900: 900
27
+ };
28
+ /**
29
+ * Check if a given object implements the BrandTextStyle interface.
30
+ */
31
+ export function instanceOfBrandTextStyle(value) {
32
+ if (!('family' in value) || value['family'] === undefined)
33
+ return false;
34
+ if (!('weight' in value) || value['weight'] === undefined)
35
+ return false;
36
+ if (!('size' in value) || value['size'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ export function BrandTextStyleFromJSON(json) {
41
+ return BrandTextStyleFromJSONTyped(json, false);
42
+ }
43
+ export function BrandTextStyleFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'family': json['family'],
49
+ 'weight': json['weight'],
50
+ 'size': json['size'],
51
+ };
52
+ }
53
+ export function BrandTextStyleToJSON(json) {
54
+ return BrandTextStyleToJSONTyped(json, false);
55
+ }
56
+ export function BrandTextStyleToJSONTyped(value, ignoreDiscriminator = false) {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'family': value['family'],
62
+ 'weight': value['weight'],
63
+ 'size': value['size'],
64
+ };
65
+ }
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { GetOperationResponseDataMetadataFromJSON, GetOperationResponseDataMetadataToJSON, } from './GetOperationResponseDataMetadata.js';
14
15
  /**
15
16
  * @export
16
17
  */
@@ -39,7 +40,7 @@ export function GetOperationResponseDataFromJSONTyped(json, ignoreDiscriminator)
39
40
  'type': json['type'] == null ? undefined : json['type'],
40
41
  'status': json['status'] == null ? undefined : json['status'],
41
42
  'progress': json['progress'] == null ? undefined : json['progress'],
42
- 'metadata': json['metadata'] == null ? undefined : json['metadata'],
43
+ 'metadata': json['metadata'] == null ? undefined : GetOperationResponseDataMetadataFromJSON(json['metadata']),
43
44
  'error': json['error'] == null ? undefined : json['error'],
44
45
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
45
46
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
@@ -57,7 +58,7 @@ export function GetOperationResponseDataToJSONTyped(value, ignoreDiscriminator =
57
58
  'type': value['type'],
58
59
  'status': value['status'],
59
60
  'progress': value['progress'],
60
- 'metadata': value['metadata'],
61
+ 'metadata': GetOperationResponseDataMetadataToJSON(value['metadata']),
61
62
  'error': value['error'],
62
63
  'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
63
64
  'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
@@ -0,0 +1,58 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Widgetic API Gateway
5
+ * API documentation for the Widgetic API Gateway
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { WidgetNextStepFromJSON, WidgetNextStepToJSON, } from './WidgetNextStep.js';
15
+ import { WidgetClarificationFromJSON, WidgetClarificationToJSON, } from './WidgetClarification.js';
16
+ import { WidgetPlanFromJSON, WidgetPlanToJSON, } from './WidgetPlan.js';
17
+ /**
18
+ * @export
19
+ */
20
+ export const GetOperationResponseDataMetadataOutcomeEnum = {
21
+ NeedsAnswers: 'needs_answers'
22
+ };
23
+ /**
24
+ * Check if a given object implements the GetOperationResponseDataMetadata interface.
25
+ */
26
+ export function instanceOfGetOperationResponseDataMetadata(value) {
27
+ return true;
28
+ }
29
+ export function GetOperationResponseDataMetadataFromJSON(json) {
30
+ return GetOperationResponseDataMetadataFromJSONTyped(json, false);
31
+ }
32
+ export function GetOperationResponseDataMetadataFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ ...json,
38
+ 'plan': json['plan'] == null ? undefined : WidgetPlanFromJSON(json['plan']),
39
+ 'outcome': json['outcome'] == null ? undefined : json['outcome'],
40
+ 'clarification': json['clarification'] == null ? undefined : WidgetClarificationFromJSON(json['clarification']),
41
+ 'nextSteps': json['nextSteps'] == null ? undefined : (json['nextSteps'].map(WidgetNextStepFromJSON)),
42
+ };
43
+ }
44
+ export function GetOperationResponseDataMetadataToJSON(json) {
45
+ return GetOperationResponseDataMetadataToJSONTyped(json, false);
46
+ }
47
+ export function GetOperationResponseDataMetadataToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ ...value,
53
+ 'plan': WidgetPlanToJSON(value['plan']),
54
+ 'outcome': value['outcome'],
55
+ 'clarification': WidgetClarificationToJSON(value['clarification']),
56
+ 'nextSteps': value['nextSteps'] == null ? undefined : (value['nextSteps'].map(WidgetNextStepToJSON)),
57
+ };
58
+ }
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { BrandTextStyleFromJSON, BrandTextStyleToJSON, } from './BrandTextStyle.js';
14
15
  import { BrandColorFromJSON, BrandColorToJSON, } from './BrandColor.js';
15
16
  import { PatchBrandKitRequestFontsFromJSON, PatchBrandKitRequestFontsToJSON, } from './PatchBrandKitRequestFonts.js';
16
17
  import { PatchBrandKitRequestSpacingFromJSON, PatchBrandKitRequestSpacingToJSON, } from './PatchBrandKitRequestSpacing.js';
@@ -30,6 +31,7 @@ export function PatchBrandKitRequestFromJSONTyped(json, ignoreDiscriminator) {
30
31
  return {
31
32
  'colors': json['colors'] == null ? undefined : (json['colors'].map(BrandColorFromJSON)),
32
33
  'fonts': json['fonts'] == null ? undefined : PatchBrandKitRequestFontsFromJSON(json['fonts']),
34
+ 'textStyles': json['textStyles'] == null ? undefined : (json['textStyles'].map(BrandTextStyleFromJSON)),
33
35
  'spacing': json['spacing'] == null ? undefined : PatchBrandKitRequestSpacingFromJSON(json['spacing']),
34
36
  'cornerRadius': json['cornerRadius'] == null ? undefined : json['cornerRadius'],
35
37
  'instructions': json['instructions'] == null ? undefined : json['instructions'],
@@ -46,6 +48,7 @@ export function PatchBrandKitRequestToJSONTyped(value, ignoreDiscriminator = fal
46
48
  return {
47
49
  'colors': value['colors'] == null ? undefined : (value['colors'].map(BrandColorToJSON)),
48
50
  'fonts': PatchBrandKitRequestFontsToJSON(value['fonts']),
51
+ 'textStyles': value['textStyles'] == null ? undefined : (value['textStyles'].map(BrandTextStyleToJSON)),
49
52
  'spacing': PatchBrandKitRequestSpacingToJSON(value['spacing']),
50
53
  'cornerRadius': value['cornerRadius'],
51
54
  'instructions': value['instructions'],
@@ -0,0 +1,52 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Widgetic API Gateway
5
+ * API documentation for the Widgetic API Gateway
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { WidgetClarificationQuestionFromJSON, WidgetClarificationQuestionToJSON, } from './WidgetClarificationQuestion.js';
15
+ /**
16
+ * Check if a given object implements the WidgetClarification interface.
17
+ */
18
+ export function instanceOfWidgetClarification(value) {
19
+ if (!('message' in value) || value['message'] === undefined)
20
+ return false;
21
+ if (!('questions' in value) || value['questions'] === undefined)
22
+ return false;
23
+ if (!('filesRead' in value) || value['filesRead'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ export function WidgetClarificationFromJSON(json) {
28
+ return WidgetClarificationFromJSONTyped(json, false);
29
+ }
30
+ export function WidgetClarificationFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'message': json['message'],
36
+ 'questions': (json['questions'].map(WidgetClarificationQuestionFromJSON)),
37
+ 'filesRead': json['filesRead'],
38
+ };
39
+ }
40
+ export function WidgetClarificationToJSON(json) {
41
+ return WidgetClarificationToJSONTyped(json, false);
42
+ }
43
+ export function WidgetClarificationToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'message': value['message'],
49
+ 'questions': (value['questions'].map(WidgetClarificationQuestionToJSON)),
50
+ 'filesRead': value['filesRead'],
51
+ };
52
+ }
@@ -0,0 +1,51 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Widgetic API Gateway
5
+ * API documentation for the Widgetic API Gateway
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the WidgetClarificationOption interface.
16
+ */
17
+ export function instanceOfWidgetClarificationOption(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('label' in value) || value['label'] === undefined)
21
+ return false;
22
+ if (!('recommended' in value) || value['recommended'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function WidgetClarificationOptionFromJSON(json) {
27
+ return WidgetClarificationOptionFromJSONTyped(json, false);
28
+ }
29
+ export function WidgetClarificationOptionFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'id': json['id'],
35
+ 'label': json['label'],
36
+ 'recommended': json['recommended'],
37
+ };
38
+ }
39
+ export function WidgetClarificationOptionToJSON(json) {
40
+ return WidgetClarificationOptionToJSONTyped(json, false);
41
+ }
42
+ export function WidgetClarificationOptionToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'id': value['id'],
48
+ 'label': value['label'],
49
+ 'recommended': value['recommended'],
50
+ };
51
+ }
@@ -0,0 +1,60 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Widgetic API Gateway
5
+ * API documentation for the Widgetic API Gateway
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { WidgetClarificationOptionFromJSON, WidgetClarificationOptionToJSON, } from './WidgetClarificationOption.js';
15
+ /**
16
+ * Check if a given object implements the WidgetClarificationQuestion interface.
17
+ */
18
+ export function instanceOfWidgetClarificationQuestion(value) {
19
+ if (!('id' in value) || value['id'] === undefined)
20
+ return false;
21
+ if (!('question' in value) || value['question'] === undefined)
22
+ return false;
23
+ if (!('recommendedWord' in value) || value['recommendedWord'] === undefined)
24
+ return false;
25
+ if (!('options' in value) || value['options'] === undefined)
26
+ return false;
27
+ if (!('allowOther' in value) || value['allowOther'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ export function WidgetClarificationQuestionFromJSON(json) {
32
+ return WidgetClarificationQuestionFromJSONTyped(json, false);
33
+ }
34
+ export function WidgetClarificationQuestionFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'id': json['id'],
40
+ 'question': json['question'],
41
+ 'recommendedWord': json['recommendedWord'],
42
+ 'options': (json['options'].map(WidgetClarificationOptionFromJSON)),
43
+ 'allowOther': json['allowOther'],
44
+ };
45
+ }
46
+ export function WidgetClarificationQuestionToJSON(json) {
47
+ return WidgetClarificationQuestionToJSONTyped(json, false);
48
+ }
49
+ export function WidgetClarificationQuestionToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'id': value['id'],
55
+ 'question': value['question'],
56
+ 'recommendedWord': value['recommendedWord'],
57
+ 'options': (value['options'].map(WidgetClarificationOptionToJSON)),
58
+ 'allowOther': value['allowOther'],
59
+ };
60
+ }
@@ -0,0 +1,67 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Widgetic API Gateway
5
+ * API documentation for the Widgetic API Gateway
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ */
17
+ export const WidgetNextStepKindEnum = {
18
+ Content: 'content',
19
+ Style: 'style',
20
+ Layout: 'layout',
21
+ Behavior: 'behavior',
22
+ Animation: 'animation',
23
+ Data: 'data',
24
+ Other: 'other'
25
+ };
26
+ /**
27
+ * Check if a given object implements the WidgetNextStep interface.
28
+ */
29
+ export function instanceOfWidgetNextStep(value) {
30
+ if (!('id' in value) || value['id'] === undefined)
31
+ return false;
32
+ if (!('label' in value) || value['label'] === undefined)
33
+ return false;
34
+ if (!('kind' in value) || value['kind'] === undefined)
35
+ return false;
36
+ if (!('recommended' in value) || value['recommended'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ export function WidgetNextStepFromJSON(json) {
41
+ return WidgetNextStepFromJSONTyped(json, false);
42
+ }
43
+ export function WidgetNextStepFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'id': json['id'],
49
+ 'label': json['label'],
50
+ 'kind': json['kind'],
51
+ 'recommended': json['recommended'],
52
+ };
53
+ }
54
+ export function WidgetNextStepToJSON(json) {
55
+ return WidgetNextStepToJSONTyped(json, false);
56
+ }
57
+ export function WidgetNextStepToJSONTyped(value, ignoreDiscriminator = false) {
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'id': value['id'],
63
+ 'label': value['label'],
64
+ 'kind': value['kind'],
65
+ 'recommended': value['recommended'],
66
+ };
67
+ }
@@ -0,0 +1,61 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Widgetic API Gateway
5
+ * API documentation for the Widgetic API Gateway
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { WidgetPlanDecisionsFromJSON, WidgetPlanDecisionsToJSON, } from './WidgetPlanDecisions.js';
15
+ import { WidgetPlanTaskFromJSON, WidgetPlanTaskToJSON, } from './WidgetPlanTask.js';
16
+ /**
17
+ * Check if a given object implements the WidgetPlan interface.
18
+ */
19
+ export function instanceOfWidgetPlan(value) {
20
+ if (!('title' in value) || value['title'] === undefined)
21
+ return false;
22
+ if (!('tasks' in value) || value['tasks'] === undefined)
23
+ return false;
24
+ if (!('decisions' in value) || value['decisions'] === undefined)
25
+ return false;
26
+ if (!('completed' in value) || value['completed'] === undefined)
27
+ return false;
28
+ if (!('activeIndex' in value) || value['activeIndex'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ export function WidgetPlanFromJSON(json) {
33
+ return WidgetPlanFromJSONTyped(json, false);
34
+ }
35
+ export function WidgetPlanFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'title': json['title'],
41
+ 'tasks': (json['tasks'].map(WidgetPlanTaskFromJSON)),
42
+ 'decisions': WidgetPlanDecisionsFromJSON(json['decisions']),
43
+ 'completed': json['completed'],
44
+ 'activeIndex': json['activeIndex'],
45
+ };
46
+ }
47
+ export function WidgetPlanToJSON(json) {
48
+ return WidgetPlanToJSONTyped(json, false);
49
+ }
50
+ export function WidgetPlanToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'title': value['title'],
56
+ 'tasks': (value['tasks'].map(WidgetPlanTaskToJSON)),
57
+ 'decisions': WidgetPlanDecisionsToJSON(value['decisions']),
58
+ 'completed': value['completed'],
59
+ 'activeIndex': value['activeIndex'],
60
+ };
61
+ }