@widgetic/api-sdk-ts 1.11.111 → 2.0.1

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 (185) hide show
  1. package/README.md +1 -1
  2. package/dist/apis/BrandKitApi.d.ts +40 -40
  3. package/dist/apis/BrandKitApi.js +40 -40
  4. package/dist/apis/CanvasesApi.d.ts +15 -15
  5. package/dist/apis/CompositionsApi.d.ts +255 -155
  6. package/dist/apis/CompositionsApi.js +333 -133
  7. package/dist/apis/CreditsApi.d.ts +7 -7
  8. package/dist/apis/CreditsApi.js +1 -1
  9. package/dist/apis/EntitlementsApi.d.ts +6 -6
  10. package/dist/apis/InvoicesApi.d.ts +6 -6
  11. package/dist/apis/InvoicesApi.js +2 -2
  12. package/dist/apis/ManagedUsersApi.d.ts +97 -63
  13. package/dist/apis/ManagedUsersApi.js +106 -39
  14. package/dist/apis/OperationsApi.d.ts +4 -4
  15. package/dist/apis/OperationsApi.js +5 -5
  16. package/dist/apis/PartnersApi.d.ts +125 -125
  17. package/dist/apis/PartnersApi.js +11 -11
  18. package/dist/apis/PublicEmbedApi.d.ts +42 -42
  19. package/dist/apis/PublicEmbedApi.js +29 -29
  20. package/dist/apis/TokensApi.d.ts +2 -0
  21. package/dist/apis/TokensApi.js +2 -0
  22. package/dist/apis/UploadsApi.d.ts +38 -38
  23. package/dist/apis/UploadsApi.js +60 -60
  24. package/dist/apis/UsersApi.d.ts +40 -40
  25. package/dist/apis/UsersApi.js +4 -4
  26. package/dist/apis/WidgetsApi.d.ts +23 -23
  27. package/dist/apis/WidgetsApi.js +36 -36
  28. package/dist/apis/WorkflowsApi.d.ts +85 -127
  29. package/dist/apis/WorkflowsApi.js +82 -192
  30. package/dist/apis/index.d.ts +0 -2
  31. package/dist/apis/index.js +0 -2
  32. package/dist/esm/apis/BrandKitApi.js +39 -39
  33. package/dist/esm/apis/CompositionsApi.js +333 -133
  34. package/dist/esm/apis/CreditsApi.js +2 -2
  35. package/dist/esm/apis/InvoicesApi.js +1 -1
  36. package/dist/esm/apis/ManagedUsersApi.js +106 -39
  37. package/dist/esm/apis/OperationsApi.js +6 -6
  38. package/dist/esm/apis/PartnersApi.js +12 -12
  39. package/dist/esm/apis/PublicEmbedApi.js +30 -30
  40. package/dist/esm/apis/TokensApi.js +2 -0
  41. package/dist/esm/apis/UploadsApi.js +60 -60
  42. package/dist/esm/apis/UsersApi.js +5 -5
  43. package/dist/esm/apis/WidgetsApi.js +37 -37
  44. package/dist/esm/apis/WorkflowsApi.js +82 -192
  45. package/dist/esm/apis/index.js +0 -2
  46. package/dist/esm/models/{GetPartnerCreditTransactions200Response.js → AccountCreditTransactionListResponse.js} +8 -8
  47. package/dist/esm/models/{GetUserAdapterConnections200Response.js → AdapterConnectionListResponse.js} +8 -8
  48. package/dist/esm/models/{RemoveUserAdapterConnection200Response.js → AdapterConnectionRemovalResponse.js} +8 -8
  49. package/dist/esm/models/{SetUserAdapterConnection200Response.js → AdapterConnectionResponse.js} +8 -8
  50. package/dist/esm/models/{AddAiAnswersKnowledgeDocument201Response.js → AiAnswersKnowledgeDocumentResponse.js} +8 -8
  51. package/dist/esm/models/{CreateCompositionDatabaseRecord201Response.js → CompositionDatabaseRecordResponse.js} +8 -8
  52. package/dist/esm/models/{CreateCompositionContentItem201Response.js → ContentItemWriteResultResponse.js} +8 -8
  53. package/dist/esm/models/{OperationsIdGetResponse.js → DeleteUpload200Response.js} +11 -11
  54. package/dist/esm/models/{UploadsIdDelete200ResponseData.js → DeleteUpload200ResponseData.js} +8 -8
  55. package/dist/esm/models/{GetPartnerDesignDefaults200Response.js → DesignDefaultsResponse.js} +8 -8
  56. package/dist/esm/models/GetOperationResponse.js +51 -0
  57. package/dist/esm/models/{OperationsIdGetResponseData.js → GetOperationResponseData.js} +12 -11
  58. package/dist/esm/models/GetOperationResponseDataMetadata.js +58 -0
  59. package/dist/esm/models/{UploadsGet200Response.js → ListUploads200Response.js} +8 -8
  60. package/dist/esm/models/{GetManagedUserLimits200Response.js → ManagedUserLimitsResponse.js} +8 -8
  61. package/dist/esm/models/{DeleteManagedUser200Response.js → ManagedUserRemovalResponse.js} +8 -8
  62. package/dist/esm/models/PublicWorkflowEventsRequestEventsInner.js +11 -0
  63. package/dist/esm/models/{GetPublicWorkflow200Response.js → PublicWorkflowResponse.js} +8 -8
  64. package/dist/esm/models/WidgetClarification.js +52 -0
  65. package/dist/esm/models/WidgetClarificationOption.js +51 -0
  66. package/dist/esm/models/WidgetClarificationQuestion.js +60 -0
  67. package/dist/esm/models/WidgetNextStep.js +67 -0
  68. package/dist/esm/models/WidgetPlan.js +61 -0
  69. package/dist/esm/models/WidgetPlanDecisions.js +68 -0
  70. package/dist/esm/models/WidgetPlanDecisionsAdaptersInner.js +47 -0
  71. package/dist/esm/models/WidgetPlanDecisionsLibrariesInner.js +51 -0
  72. package/dist/esm/models/WidgetPlanDecisionsResponsive.js +51 -0
  73. package/dist/esm/models/WidgetPlanTask.js +80 -0
  74. package/dist/esm/models/{CreateWorkspaceWorkflowFromPreset201Response.js → WorkflowDetailResponse.js} +8 -8
  75. package/dist/esm/models/WorkflowFailureReason.js +49 -0
  76. package/dist/esm/models/WorkflowFailureReasonCounter.js +52 -0
  77. package/dist/esm/models/{SaveWorkspaceWorkflow200Response.js → WorkflowResponse.js} +8 -8
  78. package/dist/esm/models/WorkflowStats.js +3 -0
  79. package/dist/esm/models/index.js +31 -19
  80. package/dist/esm/runtime.js +1 -1
  81. package/dist/models/AccountCreditTransactionListResponse.d.ts +46 -0
  82. package/dist/models/{GetPartnerCreditTransactions200Response.js → AccountCreditTransactionListResponse.js} +13 -13
  83. package/dist/models/AdapterConnectionListResponse.d.ts +46 -0
  84. package/dist/models/{GetUserAdapterConnections200Response.js → AdapterConnectionListResponse.js} +13 -13
  85. package/dist/models/AdapterConnectionRemovalResponse.d.ts +46 -0
  86. package/dist/models/{RemoveUserAdapterConnection200Response.js → AdapterConnectionRemovalResponse.js} +13 -13
  87. package/dist/models/AdapterConnectionResponse.d.ts +46 -0
  88. package/dist/models/{SetUserAdapterConnection200Response.js → AdapterConnectionResponse.js} +13 -13
  89. package/dist/models/AiAnswersKnowledgeDocumentResponse.d.ts +46 -0
  90. package/dist/models/{AddAiAnswersKnowledgeDocument201Response.js → AiAnswersKnowledgeDocumentResponse.js} +13 -13
  91. package/dist/models/CompositionDatabaseRecordResponse.d.ts +48 -0
  92. package/dist/models/CompositionDatabaseRecordResponse.js +57 -0
  93. package/dist/models/ContentItemWriteResultResponse.d.ts +46 -0
  94. package/dist/models/{CreateCompositionContentItem201Response.js → ContentItemWriteResultResponse.js} +13 -13
  95. package/dist/models/DeleteUpload200Response.d.ts +46 -0
  96. package/dist/models/{OperationsIdGetResponse.js → DeleteUpload200Response.js} +16 -16
  97. package/dist/models/DeleteUpload200ResponseData.d.ts +32 -0
  98. package/dist/models/DeleteUpload200ResponseData.js +48 -0
  99. package/dist/models/DesignDefaultsResponse.d.ts +46 -0
  100. package/dist/models/{GetPartnerDesignDefaults200Response.js → DesignDefaultsResponse.js} +13 -13
  101. package/dist/models/GetOperationResponse.d.ts +46 -0
  102. package/dist/models/GetOperationResponse.js +58 -0
  103. package/dist/models/GetOperationResponseData.d.ts +86 -0
  104. package/dist/models/{OperationsIdGetResponseData.js → GetOperationResponseData.js} +18 -17
  105. package/dist/models/GetOperationResponseDataMetadata.d.ts +65 -0
  106. package/dist/models/GetOperationResponseDataMetadata.js +66 -0
  107. package/dist/models/ListUploads200Response.d.ts +46 -0
  108. package/dist/models/{UploadsGet200Response.js → ListUploads200Response.js} +13 -13
  109. package/dist/models/ManagedUserLimitsResponse.d.ts +46 -0
  110. package/dist/models/{GetManagedUserLimits200Response.js → ManagedUserLimitsResponse.js} +13 -13
  111. package/dist/models/ManagedUserRemovalResponse.d.ts +46 -0
  112. package/dist/models/{DeleteManagedUser200Response.js → ManagedUserRemovalResponse.js} +13 -13
  113. package/dist/models/PublicWorkflowEventsRequestEventsInner.d.ts +21 -0
  114. package/dist/models/PublicWorkflowEventsRequestEventsInner.js +12 -1
  115. package/dist/models/PublicWorkflowResponse.d.ts +46 -0
  116. package/dist/models/{GetPublicWorkflow200Response.js → PublicWorkflowResponse.js} +13 -13
  117. package/dist/models/Upload.d.ts +1 -1
  118. package/dist/models/UploadLimits.d.ts +3 -3
  119. package/dist/models/WidgetClarification.d.ts +45 -0
  120. package/dist/models/WidgetClarification.js +59 -0
  121. package/dist/models/WidgetClarificationOption.d.ts +44 -0
  122. package/dist/models/WidgetClarificationOption.js +58 -0
  123. package/dist/models/WidgetClarificationQuestion.d.ts +57 -0
  124. package/dist/models/WidgetClarificationQuestion.js +67 -0
  125. package/dist/models/WidgetNextStep.d.ts +63 -0
  126. package/dist/models/WidgetNextStep.js +75 -0
  127. package/dist/models/WidgetPlan.d.ts +58 -0
  128. package/dist/models/WidgetPlan.js +68 -0
  129. package/dist/models/WidgetPlanDecisions.d.ts +71 -0
  130. package/dist/models/WidgetPlanDecisions.js +75 -0
  131. package/dist/models/WidgetPlanDecisionsAdaptersInner.d.ts +38 -0
  132. package/dist/models/WidgetPlanDecisionsAdaptersInner.js +54 -0
  133. package/dist/models/WidgetPlanDecisionsLibrariesInner.d.ts +44 -0
  134. package/dist/models/WidgetPlanDecisionsLibrariesInner.js +58 -0
  135. package/dist/models/WidgetPlanDecisionsResponsive.d.ts +44 -0
  136. package/dist/models/WidgetPlanDecisionsResponsive.js +58 -0
  137. package/dist/models/WidgetPlanTask.d.ts +77 -0
  138. package/dist/models/WidgetPlanTask.js +88 -0
  139. package/dist/models/WorkflowDetailResponse.d.ts +46 -0
  140. package/dist/models/WorkflowDetailResponse.js +58 -0
  141. package/dist/models/WorkflowFailureReason.d.ts +31 -0
  142. package/dist/models/WorkflowFailureReason.js +57 -0
  143. package/dist/models/WorkflowFailureReasonCounter.d.ts +45 -0
  144. package/dist/models/WorkflowFailureReasonCounter.js +59 -0
  145. package/dist/models/WorkflowResponse.d.ts +46 -0
  146. package/dist/models/{SaveWorkspaceWorkflow200Response.js → WorkflowResponse.js} +13 -13
  147. package/dist/models/WorkflowStats.d.ts +16 -1
  148. package/dist/models/WorkflowStats.js +3 -0
  149. package/dist/models/index.d.ts +31 -19
  150. package/dist/models/index.js +31 -19
  151. package/dist/runtime.d.ts +2 -2
  152. package/dist/runtime.js +1 -1
  153. package/package.json +1 -1
  154. package/dist/apis/PartnerApi.d.ts +0 -2707
  155. package/dist/apis/PartnerApi.js +0 -7073
  156. package/dist/apis/WorkspacesApi.d.ts +0 -352
  157. package/dist/apis/WorkspacesApi.js +0 -946
  158. package/dist/esm/apis/PartnerApi.js +0 -7036
  159. package/dist/esm/apis/WorkspacesApi.js +0 -909
  160. package/dist/esm/models/CreateCompositionFromWidget201Response.js +0 -51
  161. package/dist/esm/models/UploadsIdDelete200Response.js +0 -51
  162. package/dist/models/AddAiAnswersKnowledgeDocument201Response.d.ts +0 -46
  163. package/dist/models/CreateCompositionContentItem201Response.d.ts +0 -46
  164. package/dist/models/CreateCompositionDatabaseRecord201Response.d.ts +0 -48
  165. package/dist/models/CreateCompositionDatabaseRecord201Response.js +0 -57
  166. package/dist/models/CreateCompositionFromWidget201Response.d.ts +0 -46
  167. package/dist/models/CreateCompositionFromWidget201Response.js +0 -58
  168. package/dist/models/CreateWorkspaceWorkflowFromPreset201Response.d.ts +0 -46
  169. package/dist/models/CreateWorkspaceWorkflowFromPreset201Response.js +0 -58
  170. package/dist/models/DeleteManagedUser200Response.d.ts +0 -46
  171. package/dist/models/GetManagedUserLimits200Response.d.ts +0 -46
  172. package/dist/models/GetPartnerCreditTransactions200Response.d.ts +0 -46
  173. package/dist/models/GetPartnerDesignDefaults200Response.d.ts +0 -46
  174. package/dist/models/GetPublicWorkflow200Response.d.ts +0 -46
  175. package/dist/models/GetUserAdapterConnections200Response.d.ts +0 -46
  176. package/dist/models/OperationsIdGetResponse.d.ts +0 -46
  177. package/dist/models/OperationsIdGetResponseData.d.ts +0 -88
  178. package/dist/models/RemoveUserAdapterConnection200Response.d.ts +0 -46
  179. package/dist/models/SaveWorkspaceWorkflow200Response.d.ts +0 -46
  180. package/dist/models/SetUserAdapterConnection200Response.d.ts +0 -46
  181. package/dist/models/UploadsGet200Response.d.ts +0 -46
  182. package/dist/models/UploadsIdDelete200Response.d.ts +0 -46
  183. package/dist/models/UploadsIdDelete200Response.js +0 -58
  184. package/dist/models/UploadsIdDelete200ResponseData.d.ts +0 -32
  185. package/dist/models/UploadsIdDelete200ResponseData.js +0 -48
@@ -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
+ }
@@ -0,0 +1,68 @@
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 { WidgetPlanDecisionsResponsiveFromJSON, WidgetPlanDecisionsResponsiveToJSON, } from './WidgetPlanDecisionsResponsive.js';
15
+ import { WidgetPlanDecisionsLibrariesInnerFromJSON, WidgetPlanDecisionsLibrariesInnerToJSON, } from './WidgetPlanDecisionsLibrariesInner.js';
16
+ import { WidgetPlanDecisionsAdaptersInnerFromJSON, WidgetPlanDecisionsAdaptersInnerToJSON, } from './WidgetPlanDecisionsAdaptersInner.js';
17
+ /**
18
+ * Check if a given object implements the WidgetPlanDecisions interface.
19
+ */
20
+ export function instanceOfWidgetPlanDecisions(value) {
21
+ if (!('libraries' in value) || value['libraries'] === undefined)
22
+ return false;
23
+ if (!('adapters' in value) || value['adapters'] === undefined)
24
+ return false;
25
+ if (!('look' in value) || value['look'] === undefined)
26
+ return false;
27
+ if (!('motion' in value) || value['motion'] === undefined)
28
+ return false;
29
+ if (!('improvements' in value) || value['improvements'] === undefined)
30
+ return false;
31
+ if (!('notes' in value) || value['notes'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ export function WidgetPlanDecisionsFromJSON(json) {
36
+ return WidgetPlanDecisionsFromJSONTyped(json, false);
37
+ }
38
+ export function WidgetPlanDecisionsFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'libraries': (json['libraries'].map(WidgetPlanDecisionsLibrariesInnerFromJSON)),
44
+ 'adapters': (json['adapters'].map(WidgetPlanDecisionsAdaptersInnerFromJSON)),
45
+ 'look': json['look'],
46
+ 'motion': json['motion'],
47
+ 'improvements': json['improvements'],
48
+ 'notes': json['notes'],
49
+ 'responsive': json['responsive'] == null ? undefined : WidgetPlanDecisionsResponsiveFromJSON(json['responsive']),
50
+ };
51
+ }
52
+ export function WidgetPlanDecisionsToJSON(json) {
53
+ return WidgetPlanDecisionsToJSONTyped(json, false);
54
+ }
55
+ export function WidgetPlanDecisionsToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'libraries': (value['libraries'].map(WidgetPlanDecisionsLibrariesInnerToJSON)),
61
+ 'adapters': (value['adapters'].map(WidgetPlanDecisionsAdaptersInnerToJSON)),
62
+ 'look': value['look'],
63
+ 'motion': value['motion'],
64
+ 'improvements': value['improvements'],
65
+ 'notes': value['notes'],
66
+ 'responsive': WidgetPlanDecisionsResponsiveToJSON(value['responsive']),
67
+ };
68
+ }
@@ -0,0 +1,47 @@
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 WidgetPlanDecisionsAdaptersInner interface.
16
+ */
17
+ export function instanceOfWidgetPlanDecisionsAdaptersInner(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('label' in value) || value['label'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function WidgetPlanDecisionsAdaptersInnerFromJSON(json) {
25
+ return WidgetPlanDecisionsAdaptersInnerFromJSONTyped(json, false);
26
+ }
27
+ export function WidgetPlanDecisionsAdaptersInnerFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'id': json['id'],
33
+ 'label': json['label'],
34
+ };
35
+ }
36
+ export function WidgetPlanDecisionsAdaptersInnerToJSON(json) {
37
+ return WidgetPlanDecisionsAdaptersInnerToJSONTyped(json, false);
38
+ }
39
+ export function WidgetPlanDecisionsAdaptersInnerToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'id': value['id'],
45
+ 'label': value['label'],
46
+ };
47
+ }
@@ -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 WidgetPlanDecisionsLibrariesInner interface.
16
+ */
17
+ export function instanceOfWidgetPlanDecisionsLibrariesInner(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 (!('reason' in value) || value['reason'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function WidgetPlanDecisionsLibrariesInnerFromJSON(json) {
27
+ return WidgetPlanDecisionsLibrariesInnerFromJSONTyped(json, false);
28
+ }
29
+ export function WidgetPlanDecisionsLibrariesInnerFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'id': json['id'],
35
+ 'label': json['label'],
36
+ 'reason': json['reason'],
37
+ };
38
+ }
39
+ export function WidgetPlanDecisionsLibrariesInnerToJSON(json) {
40
+ return WidgetPlanDecisionsLibrariesInnerToJSONTyped(json, false);
41
+ }
42
+ export function WidgetPlanDecisionsLibrariesInnerToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'id': value['id'],
48
+ 'label': value['label'],
49
+ 'reason': value['reason'],
50
+ };
51
+ }
@@ -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 WidgetPlanDecisionsResponsive interface.
16
+ */
17
+ export function instanceOfWidgetPlanDecisionsResponsive(value) {
18
+ if (!('mobile' in value) || value['mobile'] === undefined)
19
+ return false;
20
+ if (!('tablet' in value) || value['tablet'] === undefined)
21
+ return false;
22
+ if (!('desktop' in value) || value['desktop'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function WidgetPlanDecisionsResponsiveFromJSON(json) {
27
+ return WidgetPlanDecisionsResponsiveFromJSONTyped(json, false);
28
+ }
29
+ export function WidgetPlanDecisionsResponsiveFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'mobile': json['mobile'],
35
+ 'tablet': json['tablet'],
36
+ 'desktop': json['desktop'],
37
+ };
38
+ }
39
+ export function WidgetPlanDecisionsResponsiveToJSON(json) {
40
+ return WidgetPlanDecisionsResponsiveToJSONTyped(json, false);
41
+ }
42
+ export function WidgetPlanDecisionsResponsiveToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'mobile': value['mobile'],
48
+ 'tablet': value['tablet'],
49
+ 'desktop': value['desktop'],
50
+ };
51
+ }
@@ -0,0 +1,80 @@
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 WidgetPlanTaskKindEnum = {
18
+ Read: 'read',
19
+ Layout: 'layout',
20
+ Content: 'content',
21
+ Style: 'style',
22
+ Library: 'library',
23
+ Adapter: 'adapter',
24
+ Motion: 'motion',
25
+ Behavior: 'behavior',
26
+ Polish: 'polish',
27
+ Check: 'check',
28
+ Other: 'other'
29
+ };
30
+ /**
31
+ * @export
32
+ */
33
+ export const WidgetPlanTaskStatusEnum = {
34
+ Pending: 'pending',
35
+ InProgress: 'in_progress',
36
+ Done: 'done',
37
+ Failed: 'failed'
38
+ };
39
+ /**
40
+ * Check if a given object implements the WidgetPlanTask interface.
41
+ */
42
+ export function instanceOfWidgetPlanTask(value) {
43
+ if (!('id' in value) || value['id'] === undefined)
44
+ return false;
45
+ if (!('label' in value) || value['label'] === undefined)
46
+ return false;
47
+ if (!('kind' in value) || value['kind'] === undefined)
48
+ return false;
49
+ if (!('status' in value) || value['status'] === undefined)
50
+ return false;
51
+ return true;
52
+ }
53
+ export function WidgetPlanTaskFromJSON(json) {
54
+ return WidgetPlanTaskFromJSONTyped(json, false);
55
+ }
56
+ export function WidgetPlanTaskFromJSONTyped(json, ignoreDiscriminator) {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+ 'id': json['id'],
62
+ 'label': json['label'],
63
+ 'kind': json['kind'],
64
+ 'status': json['status'],
65
+ };
66
+ }
67
+ export function WidgetPlanTaskToJSON(json) {
68
+ return WidgetPlanTaskToJSONTyped(json, false);
69
+ }
70
+ export function WidgetPlanTaskToJSONTyped(value, ignoreDiscriminator = false) {
71
+ if (value == null) {
72
+ return value;
73
+ }
74
+ return {
75
+ 'id': value['id'],
76
+ 'label': value['label'],
77
+ 'kind': value['kind'],
78
+ 'status': value['status'],
79
+ };
80
+ }
@@ -14,19 +14,19 @@
14
14
  import { ResponseMetaFromJSON, ResponseMetaToJSON, } from './ResponseMeta.js';
15
15
  import { WorkflowDetailFromJSON, WorkflowDetailToJSON, } from './WorkflowDetail.js';
16
16
  /**
17
- * Check if a given object implements the CreateWorkspaceWorkflowFromPreset201Response interface.
17
+ * Check if a given object implements the WorkflowDetailResponse interface.
18
18
  */
19
- export function instanceOfCreateWorkspaceWorkflowFromPreset201Response(value) {
19
+ export function instanceOfWorkflowDetailResponse(value) {
20
20
  if (!('success' in value) || value['success'] === undefined)
21
21
  return false;
22
22
  if (!('data' in value) || value['data'] === undefined)
23
23
  return false;
24
24
  return true;
25
25
  }
26
- export function CreateWorkspaceWorkflowFromPreset201ResponseFromJSON(json) {
27
- return CreateWorkspaceWorkflowFromPreset201ResponseFromJSONTyped(json, false);
26
+ export function WorkflowDetailResponseFromJSON(json) {
27
+ return WorkflowDetailResponseFromJSONTyped(json, false);
28
28
  }
29
- export function CreateWorkspaceWorkflowFromPreset201ResponseFromJSONTyped(json, ignoreDiscriminator) {
29
+ export function WorkflowDetailResponseFromJSONTyped(json, ignoreDiscriminator) {
30
30
  if (json == null) {
31
31
  return json;
32
32
  }
@@ -36,10 +36,10 @@ export function CreateWorkspaceWorkflowFromPreset201ResponseFromJSONTyped(json,
36
36
  'meta': json['meta'] == null ? undefined : ResponseMetaFromJSON(json['meta']),
37
37
  };
38
38
  }
39
- export function CreateWorkspaceWorkflowFromPreset201ResponseToJSON(json) {
40
- return CreateWorkspaceWorkflowFromPreset201ResponseToJSONTyped(json, false);
39
+ export function WorkflowDetailResponseToJSON(json) {
40
+ return WorkflowDetailResponseToJSONTyped(json, false);
41
41
  }
42
- export function CreateWorkspaceWorkflowFromPreset201ResponseToJSONTyped(value, ignoreDiscriminator = false) {
42
+ export function WorkflowDetailResponseToJSONTyped(value, ignoreDiscriminator = false) {
43
43
  if (value == null) {
44
44
  return value;
45
45
  }
@@ -0,0 +1,49 @@
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
+ * Why a composition could not be shown to a visitor. `timeout`: it did not appear in time (the embed waits eight
16
+ * seconds). `widget_error`: the widget in it reported an error. `build`: the embed could not build it at all. `other`:
17
+ * another step was already on its way, or the page was going away. A closed list: never a message and never a code a
18
+ * widget chose.
19
+ *
20
+ * @export
21
+ */
22
+ export const WorkflowFailureReason = {
23
+ Timeout: 'timeout',
24
+ WidgetError: 'widget_error',
25
+ Build: 'build',
26
+ Other: 'other'
27
+ };
28
+ export function instanceOfWorkflowFailureReason(value) {
29
+ for (const key in WorkflowFailureReason) {
30
+ if (Object.prototype.hasOwnProperty.call(WorkflowFailureReason, key)) {
31
+ if (WorkflowFailureReason[key] === value) {
32
+ return true;
33
+ }
34
+ }
35
+ }
36
+ return false;
37
+ }
38
+ export function WorkflowFailureReasonFromJSON(json) {
39
+ return WorkflowFailureReasonFromJSONTyped(json, false);
40
+ }
41
+ export function WorkflowFailureReasonFromJSONTyped(json, ignoreDiscriminator) {
42
+ return json;
43
+ }
44
+ export function WorkflowFailureReasonToJSON(value) {
45
+ return value;
46
+ }
47
+ export function WorkflowFailureReasonToJSONTyped(value, ignoreDiscriminator) {
48
+ return value;
49
+ }