@widgetic/api-sdk-ts 1.11.109 → 2.0.0
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.
- package/README.md +1 -1
- package/dist/apis/BrandKitApi.d.ts +130 -0
- package/dist/apis/BrandKitApi.js +381 -0
- package/dist/apis/CanvasesApi.d.ts +15 -15
- package/dist/apis/CompositionsApi.d.ts +255 -155
- package/dist/apis/CompositionsApi.js +333 -133
- package/dist/apis/CreditsApi.d.ts +7 -7
- package/dist/apis/CreditsApi.js +1 -1
- package/dist/apis/EntitlementsApi.d.ts +6 -6
- package/dist/apis/InvoicesApi.d.ts +6 -6
- package/dist/apis/InvoicesApi.js +2 -2
- package/dist/apis/ManagedUsersApi.d.ts +97 -63
- package/dist/apis/ManagedUsersApi.js +106 -39
- package/dist/apis/OperationsApi.d.ts +4 -4
- package/dist/apis/OperationsApi.js +5 -5
- package/dist/apis/PartnersApi.d.ts +125 -125
- package/dist/apis/PartnersApi.js +11 -11
- package/dist/apis/PublicEmbedApi.d.ts +42 -42
- package/dist/apis/PublicEmbedApi.js +29 -29
- package/dist/apis/UploadsApi.d.ts +38 -38
- package/dist/apis/UploadsApi.js +60 -60
- package/dist/apis/UsersApi.d.ts +40 -40
- package/dist/apis/UsersApi.js +4 -4
- package/dist/apis/WidgetsApi.d.ts +23 -23
- package/dist/apis/WidgetsApi.js +36 -36
- package/dist/apis/WorkflowsApi.d.ts +85 -127
- package/dist/apis/WorkflowsApi.js +82 -192
- package/dist/apis/index.d.ts +1 -2
- package/dist/apis/index.js +1 -2
- package/dist/esm/apis/BrandKitApi.js +344 -0
- package/dist/esm/apis/CompositionsApi.js +333 -133
- package/dist/esm/apis/CreditsApi.js +2 -2
- package/dist/esm/apis/InvoicesApi.js +1 -1
- package/dist/esm/apis/ManagedUsersApi.js +106 -39
- package/dist/esm/apis/OperationsApi.js +6 -6
- package/dist/esm/apis/PartnersApi.js +12 -12
- package/dist/esm/apis/PublicEmbedApi.js +30 -30
- package/dist/esm/apis/UploadsApi.js +60 -60
- package/dist/esm/apis/UsersApi.js +5 -5
- package/dist/esm/apis/WidgetsApi.js +37 -37
- package/dist/esm/apis/WorkflowsApi.js +82 -192
- package/dist/esm/apis/index.js +1 -2
- package/dist/esm/models/{GetPartnerCreditTransactions200Response.js → AccountCreditTransactionListResponse.js} +8 -8
- package/dist/esm/models/{GetUserAdapterConnections200Response.js → AdapterConnectionListResponse.js} +8 -8
- package/dist/esm/models/{RemoveUserAdapterConnection200Response.js → AdapterConnectionRemovalResponse.js} +8 -8
- package/dist/esm/models/{SetUserAdapterConnection200Response.js → AdapterConnectionResponse.js} +8 -8
- package/dist/esm/models/{AddAiAnswersKnowledgeDocument201Response.js → AiAnswersKnowledgeDocumentResponse.js} +8 -8
- package/dist/esm/models/BrandColor.js +64 -0
- package/dist/esm/models/BrandFont.js +72 -0
- package/dist/esm/models/BrandKitAssetView.js +96 -0
- package/dist/esm/models/BrandKitFigmaSource.js +59 -0
- package/dist/esm/models/BrandKitTokens.js +56 -0
- package/dist/esm/models/BrandKitTokensFonts.js +48 -0
- package/dist/esm/models/BrandKitView.js +75 -0
- package/dist/esm/models/BrandKitViewOwner.js +54 -0
- package/dist/esm/models/BrandKitViewResponse.js +51 -0
- package/dist/esm/models/BrandSpacing.js +71 -0
- package/dist/esm/models/{CreateCompositionDatabaseRecord201Response.js → CompositionDatabaseRecordResponse.js} +8 -8
- package/dist/esm/models/{CreateCompositionContentItem201Response.js → ContentItemWriteResultResponse.js} +8 -8
- package/dist/esm/models/{OperationsIdGetResponse.js → DeleteUpload200Response.js} +11 -11
- package/dist/esm/models/{UploadsIdDelete200ResponseData.js → DeleteUpload200ResponseData.js} +8 -8
- package/dist/esm/models/{GetPartnerDesignDefaults200Response.js → DesignDefaultsResponse.js} +8 -8
- package/dist/esm/models/GetOperationResponse.js +51 -0
- package/dist/esm/models/{OperationsIdGetResponseData.js → GetOperationResponseData.js} +9 -9
- package/dist/esm/models/{UploadsGet200Response.js → ListUploads200Response.js} +8 -8
- package/dist/esm/models/{GetManagedUserLimits200Response.js → ManagedUserLimitsResponse.js} +8 -8
- package/dist/esm/models/{DeleteManagedUser200Response.js → ManagedUserRemovalResponse.js} +8 -8
- package/dist/esm/models/PatchBrandKitAssetRequest.js +68 -0
- package/dist/esm/models/PatchBrandKitRequest.js +54 -0
- package/dist/esm/models/PatchBrandKitRequestFonts.js +48 -0
- package/dist/esm/models/PatchBrandKitRequestSpacing.js +55 -0
- package/dist/esm/models/PostBrandKitIconRequest.js +47 -0
- package/dist/esm/models/PublicWorkflowEventsRequestEventsInner.js +11 -0
- package/dist/esm/models/{GetPublicWorkflow200Response.js → PublicWorkflowResponse.js} +8 -8
- package/dist/esm/models/PutBrandKitRequest.js +49 -0
- package/dist/esm/models/{CreateWorkspaceWorkflowFromPreset201Response.js → WorkflowDetailResponse.js} +8 -8
- package/dist/esm/models/WorkflowFailureReason.js +49 -0
- package/dist/esm/models/WorkflowFailureReasonCounter.js +52 -0
- package/dist/esm/models/{SaveWorkspaceWorkflow200Response.js → WorkflowResponse.js} +8 -8
- package/dist/esm/models/WorkflowStats.js +3 -0
- package/dist/esm/models/index.js +36 -19
- package/dist/esm/runtime.js +1 -1
- package/dist/models/AccountCreditTransactionListResponse.d.ts +46 -0
- package/dist/models/{GetPartnerCreditTransactions200Response.js → AccountCreditTransactionListResponse.js} +13 -13
- package/dist/models/AdapterConnectionListResponse.d.ts +46 -0
- package/dist/models/{GetUserAdapterConnections200Response.js → AdapterConnectionListResponse.js} +13 -13
- package/dist/models/AdapterConnectionRemovalResponse.d.ts +46 -0
- package/dist/models/{RemoveUserAdapterConnection200Response.js → AdapterConnectionRemovalResponse.js} +13 -13
- package/dist/models/AdapterConnectionResponse.d.ts +46 -0
- package/dist/models/{SetUserAdapterConnection200Response.js → AdapterConnectionResponse.js} +13 -13
- package/dist/models/AiAnswersKnowledgeDocumentResponse.d.ts +46 -0
- package/dist/models/{AddAiAnswersKnowledgeDocument201Response.js → AiAnswersKnowledgeDocumentResponse.js} +13 -13
- package/dist/models/BrandColor.d.ts +60 -0
- package/dist/models/BrandColor.js +72 -0
- package/dist/models/BrandFont.d.ts +73 -0
- package/dist/models/BrandFont.js +80 -0
- package/dist/models/BrandKitAssetView.d.ts +130 -0
- package/dist/models/BrandKitAssetView.js +104 -0
- package/dist/models/BrandKitFigmaSource.d.ts +56 -0
- package/dist/models/BrandKitFigmaSource.js +66 -0
- package/dist/models/BrandKitTokens.d.ts +53 -0
- package/dist/models/BrandKitTokens.js +63 -0
- package/dist/models/BrandKitTokensFonts.d.ts +51 -0
- package/dist/models/BrandKitTokensFonts.js +55 -0
- package/dist/models/BrandKitView.d.ts +90 -0
- package/dist/models/BrandKitView.js +82 -0
- package/dist/models/BrandKitViewOwner.d.ts +46 -0
- package/dist/models/BrandKitViewOwner.js +62 -0
- package/dist/models/BrandKitViewResponse.d.ts +46 -0
- package/dist/models/BrandKitViewResponse.js +58 -0
- package/dist/models/BrandSpacing.d.ts +74 -0
- package/dist/models/BrandSpacing.js +78 -0
- package/dist/models/CompositionDatabaseRecordResponse.d.ts +48 -0
- package/dist/models/CompositionDatabaseRecordResponse.js +57 -0
- package/dist/models/ContentItemWriteResultResponse.d.ts +46 -0
- package/dist/models/{CreateCompositionContentItem201Response.js → ContentItemWriteResultResponse.js} +13 -13
- package/dist/models/DeleteUpload200Response.d.ts +46 -0
- package/dist/models/{OperationsIdGetResponse.js → DeleteUpload200Response.js} +16 -16
- package/dist/models/DeleteUpload200ResponseData.d.ts +32 -0
- package/dist/models/DeleteUpload200ResponseData.js +48 -0
- package/dist/models/DesignDefaultsResponse.d.ts +46 -0
- package/dist/models/{GetPartnerDesignDefaults200Response.js → DesignDefaultsResponse.js} +13 -13
- package/dist/models/GetOperationResponse.d.ts +46 -0
- package/dist/models/GetOperationResponse.js +58 -0
- package/dist/models/{OperationsIdGetResponseData.d.ts → GetOperationResponseData.d.ts} +19 -19
- package/dist/models/{OperationsIdGetResponseData.js → GetOperationResponseData.js} +15 -15
- package/dist/models/ListUploads200Response.d.ts +46 -0
- package/dist/models/{UploadsGet200Response.js → ListUploads200Response.js} +13 -13
- package/dist/models/ManagedUserLimitsResponse.d.ts +46 -0
- package/dist/models/{GetManagedUserLimits200Response.js → ManagedUserLimitsResponse.js} +13 -13
- package/dist/models/ManagedUserRemovalResponse.d.ts +46 -0
- package/dist/models/{DeleteManagedUser200Response.js → ManagedUserRemovalResponse.js} +13 -13
- package/dist/models/PatchBrandKitAssetRequest.d.ts +73 -0
- package/dist/models/PatchBrandKitAssetRequest.js +76 -0
- package/dist/models/PatchBrandKitRequest.d.ts +65 -0
- package/dist/models/PatchBrandKitRequest.js +61 -0
- package/dist/models/PatchBrandKitRequestFonts.d.ts +51 -0
- package/dist/models/PatchBrandKitRequestFonts.js +55 -0
- package/dist/models/PatchBrandKitRequestSpacing.d.ts +74 -0
- package/dist/models/PatchBrandKitRequestSpacing.js +62 -0
- package/dist/models/PostBrandKitIconRequest.d.ts +38 -0
- package/dist/models/PostBrandKitIconRequest.js +54 -0
- package/dist/models/PublicWorkflowEventsRequestEventsInner.d.ts +21 -0
- package/dist/models/PublicWorkflowEventsRequestEventsInner.js +12 -1
- package/dist/models/PublicWorkflowResponse.d.ts +46 -0
- package/dist/models/{GetPublicWorkflow200Response.js → PublicWorkflowResponse.js} +13 -13
- package/dist/models/PutBrandKitRequest.d.ts +46 -0
- package/dist/models/PutBrandKitRequest.js +56 -0
- package/dist/models/Upload.d.ts +1 -1
- package/dist/models/UploadLimits.d.ts +3 -3
- package/dist/models/WorkflowDetailResponse.d.ts +46 -0
- package/dist/models/WorkflowDetailResponse.js +58 -0
- package/dist/models/WorkflowFailureReason.d.ts +31 -0
- package/dist/models/WorkflowFailureReason.js +57 -0
- package/dist/models/WorkflowFailureReasonCounter.d.ts +45 -0
- package/dist/models/WorkflowFailureReasonCounter.js +59 -0
- package/dist/models/WorkflowResponse.d.ts +46 -0
- package/dist/models/{SaveWorkspaceWorkflow200Response.js → WorkflowResponse.js} +13 -13
- package/dist/models/WorkflowStats.d.ts +16 -1
- package/dist/models/WorkflowStats.js +3 -0
- package/dist/models/index.d.ts +36 -19
- package/dist/models/index.js +36 -19
- package/dist/runtime.d.ts +2 -2
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/dist/apis/PartnerApi.d.ts +0 -2595
- package/dist/apis/PartnerApi.js +0 -6749
- package/dist/apis/WorkspacesApi.d.ts +0 -352
- package/dist/apis/WorkspacesApi.js +0 -946
- package/dist/esm/apis/PartnerApi.js +0 -6712
- package/dist/esm/apis/WorkspacesApi.js +0 -909
- package/dist/esm/models/CreateCompositionFromWidget201Response.js +0 -51
- package/dist/esm/models/UploadsIdDelete200Response.js +0 -51
- package/dist/models/AddAiAnswersKnowledgeDocument201Response.d.ts +0 -46
- package/dist/models/CreateCompositionContentItem201Response.d.ts +0 -46
- package/dist/models/CreateCompositionDatabaseRecord201Response.d.ts +0 -48
- package/dist/models/CreateCompositionDatabaseRecord201Response.js +0 -57
- package/dist/models/CreateCompositionFromWidget201Response.d.ts +0 -46
- package/dist/models/CreateCompositionFromWidget201Response.js +0 -58
- package/dist/models/CreateWorkspaceWorkflowFromPreset201Response.d.ts +0 -46
- package/dist/models/CreateWorkspaceWorkflowFromPreset201Response.js +0 -58
- package/dist/models/DeleteManagedUser200Response.d.ts +0 -46
- package/dist/models/GetManagedUserLimits200Response.d.ts +0 -46
- package/dist/models/GetPartnerCreditTransactions200Response.d.ts +0 -46
- package/dist/models/GetPartnerDesignDefaults200Response.d.ts +0 -46
- package/dist/models/GetPublicWorkflow200Response.d.ts +0 -46
- package/dist/models/GetUserAdapterConnections200Response.d.ts +0 -46
- package/dist/models/OperationsIdGetResponse.d.ts +0 -46
- package/dist/models/RemoveUserAdapterConnection200Response.d.ts +0 -46
- package/dist/models/SaveWorkspaceWorkflow200Response.d.ts +0 -46
- package/dist/models/SetUserAdapterConnection200Response.d.ts +0 -46
- package/dist/models/UploadsGet200Response.d.ts +0 -46
- package/dist/models/UploadsIdDelete200Response.d.ts +0 -46
- package/dist/models/UploadsIdDelete200Response.js +0 -58
- package/dist/models/UploadsIdDelete200ResponseData.d.ts +0 -32
- package/dist/models/UploadsIdDelete200ResponseData.js +0 -48
|
@@ -0,0 +1,48 @@
|
|
|
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 { BrandFontFromJSON, BrandFontToJSON, } from './BrandFont.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the PatchBrandKitRequestFonts interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfPatchBrandKitRequestFonts(value) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
export function PatchBrandKitRequestFontsFromJSON(json) {
|
|
22
|
+
return PatchBrandKitRequestFontsFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function PatchBrandKitRequestFontsFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if (json == null) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'title': json['title'] == null ? undefined : BrandFontFromJSON(json['title']),
|
|
30
|
+
'subtitle': json['subtitle'] == null ? undefined : BrandFontFromJSON(json['subtitle']),
|
|
31
|
+
'body': json['body'] == null ? undefined : BrandFontFromJSON(json['body']),
|
|
32
|
+
'caption': json['caption'] == null ? undefined : BrandFontFromJSON(json['caption']),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function PatchBrandKitRequestFontsToJSON(json) {
|
|
36
|
+
return PatchBrandKitRequestFontsToJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function PatchBrandKitRequestFontsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'title': BrandFontToJSON(value['title']),
|
|
44
|
+
'subtitle': BrandFontToJSON(value['subtitle']),
|
|
45
|
+
'body': BrandFontToJSON(value['body']),
|
|
46
|
+
'caption': BrandFontToJSON(value['caption']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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 PatchBrandKitRequestSpacing interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPatchBrandKitRequestSpacing(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function PatchBrandKitRequestSpacingFromJSON(json) {
|
|
21
|
+
return PatchBrandKitRequestSpacingFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function PatchBrandKitRequestSpacingFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'xs': json['xs'] == null ? undefined : json['xs'],
|
|
29
|
+
's': json['s'] == null ? undefined : json['s'],
|
|
30
|
+
'm': json['m'] == null ? undefined : json['m'],
|
|
31
|
+
'l': json['l'] == null ? undefined : json['l'],
|
|
32
|
+
'xl': json['xl'] == null ? undefined : json['xl'],
|
|
33
|
+
'radiusS': json['radiusS'] == null ? undefined : json['radiusS'],
|
|
34
|
+
'radiusM': json['radiusM'] == null ? undefined : json['radiusM'],
|
|
35
|
+
'radiusL': json['radiusL'] == null ? undefined : json['radiusL'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function PatchBrandKitRequestSpacingToJSON(json) {
|
|
39
|
+
return PatchBrandKitRequestSpacingToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function PatchBrandKitRequestSpacingToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'xs': value['xs'],
|
|
47
|
+
's': value['s'],
|
|
48
|
+
'm': value['m'],
|
|
49
|
+
'l': value['l'],
|
|
50
|
+
'xl': value['xl'],
|
|
51
|
+
'radiusS': value['radiusS'],
|
|
52
|
+
'radiusM': value['radiusM'],
|
|
53
|
+
'radiusL': value['radiusL'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -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 PostBrandKitIconRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPostBrandKitIconRequest(value) {
|
|
18
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('svg' in value) || value['svg'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function PostBrandKitIconRequestFromJSON(json) {
|
|
25
|
+
return PostBrandKitIconRequestFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function PostBrandKitIconRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'name': json['name'],
|
|
33
|
+
'svg': json['svg'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function PostBrandKitIconRequestToJSON(json) {
|
|
37
|
+
return PostBrandKitIconRequestToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function PostBrandKitIconRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'name': value['name'],
|
|
45
|
+
'svg': value['svg'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -19,6 +19,15 @@ export const PublicWorkflowEventsRequestEventsInnerKEnum = {
|
|
|
19
19
|
E: 'e',
|
|
20
20
|
F: 'f'
|
|
21
21
|
};
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
export const PublicWorkflowEventsRequestEventsInnerREnum = {
|
|
26
|
+
T: 't',
|
|
27
|
+
E: 'e',
|
|
28
|
+
B: 'b',
|
|
29
|
+
O: 'o'
|
|
30
|
+
};
|
|
22
31
|
/**
|
|
23
32
|
* Check if a given object implements the PublicWorkflowEventsRequestEventsInner interface.
|
|
24
33
|
*/
|
|
@@ -40,6 +49,7 @@ export function PublicWorkflowEventsRequestEventsInnerFromJSONTyped(json, ignore
|
|
|
40
49
|
'k': json['k'],
|
|
41
50
|
'id': json['id'],
|
|
42
51
|
'c': json['c'] == null ? undefined : json['c'],
|
|
52
|
+
'r': json['r'] == null ? undefined : json['r'],
|
|
43
53
|
};
|
|
44
54
|
}
|
|
45
55
|
export function PublicWorkflowEventsRequestEventsInnerToJSON(json) {
|
|
@@ -53,5 +63,6 @@ export function PublicWorkflowEventsRequestEventsInnerToJSONTyped(value, ignoreD
|
|
|
53
63
|
'k': value['k'],
|
|
54
64
|
'id': value['id'],
|
|
55
65
|
'c': value['c'],
|
|
66
|
+
'r': value['r'],
|
|
56
67
|
};
|
|
57
68
|
}
|
|
@@ -14,19 +14,19 @@
|
|
|
14
14
|
import { PublicWorkflowFromJSON, PublicWorkflowToJSON, } from './PublicWorkflow.js';
|
|
15
15
|
import { ResponseMetaFromJSON, ResponseMetaToJSON, } from './ResponseMeta.js';
|
|
16
16
|
/**
|
|
17
|
-
* Check if a given object implements the
|
|
17
|
+
* Check if a given object implements the PublicWorkflowResponse interface.
|
|
18
18
|
*/
|
|
19
|
-
export function
|
|
19
|
+
export function instanceOfPublicWorkflowResponse(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
|
|
27
|
-
return
|
|
26
|
+
export function PublicWorkflowResponseFromJSON(json) {
|
|
27
|
+
return PublicWorkflowResponseFromJSONTyped(json, false);
|
|
28
28
|
}
|
|
29
|
-
export function
|
|
29
|
+
export function PublicWorkflowResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
30
|
if (json == null) {
|
|
31
31
|
return json;
|
|
32
32
|
}
|
|
@@ -36,10 +36,10 @@ export function GetPublicWorkflow200ResponseFromJSONTyped(json, ignoreDiscrimina
|
|
|
36
36
|
'meta': json['meta'] == null ? undefined : ResponseMetaFromJSON(json['meta']),
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
export function
|
|
40
|
-
return
|
|
39
|
+
export function PublicWorkflowResponseToJSON(json) {
|
|
40
|
+
return PublicWorkflowResponseToJSONTyped(json, false);
|
|
41
41
|
}
|
|
42
|
-
export function
|
|
42
|
+
export function PublicWorkflowResponseToJSONTyped(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
|
+
import { BrandKitTokensFromJSON, BrandKitTokensToJSON, } from './BrandKitTokens.js';
|
|
15
|
+
import { BrandKitFigmaSourceFromJSON, BrandKitFigmaSourceToJSON, } from './BrandKitFigmaSource.js';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the PutBrandKitRequest interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfPutBrandKitRequest(value) {
|
|
20
|
+
if (!('tokens' in value) || value['tokens'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function PutBrandKitRequestFromJSON(json) {
|
|
25
|
+
return PutBrandKitRequestFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function PutBrandKitRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'tokens': BrandKitTokensFromJSON(json['tokens']),
|
|
33
|
+
'figmaSource': json['figmaSource'] == null ? undefined : BrandKitFigmaSourceFromJSON(json['figmaSource']),
|
|
34
|
+
'expectedVersion': json['expectedVersion'] == null ? undefined : json['expectedVersion'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function PutBrandKitRequestToJSON(json) {
|
|
38
|
+
return PutBrandKitRequestToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function PutBrandKitRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'tokens': BrandKitTokensToJSON(value['tokens']),
|
|
46
|
+
'figmaSource': BrandKitFigmaSourceToJSON(value['figmaSource']),
|
|
47
|
+
'expectedVersion': value['expectedVersion'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -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
|
|
17
|
+
* Check if a given object implements the WorkflowDetailResponse interface.
|
|
18
18
|
*/
|
|
19
|
-
export function
|
|
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
|
|
27
|
-
return
|
|
26
|
+
export function WorkflowDetailResponseFromJSON(json) {
|
|
27
|
+
return WorkflowDetailResponseFromJSONTyped(json, false);
|
|
28
28
|
}
|
|
29
|
-
export function
|
|
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
|
|
40
|
-
return
|
|
39
|
+
export function WorkflowDetailResponseToJSON(json) {
|
|
40
|
+
return WorkflowDetailResponseToJSONTyped(json, false);
|
|
41
41
|
}
|
|
42
|
-
export function
|
|
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
|
+
}
|
|
@@ -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 { WorkflowFailureReasonFromJSON, WorkflowFailureReasonToJSON, } from './WorkflowFailureReason.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the WorkflowFailureReasonCounter interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfWorkflowFailureReasonCounter(value) {
|
|
19
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('reason' in value) || value['reason'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function WorkflowFailureReasonCounterFromJSON(json) {
|
|
28
|
+
return WorkflowFailureReasonCounterFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function WorkflowFailureReasonCounterFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'id': json['id'],
|
|
36
|
+
'reason': WorkflowFailureReasonFromJSON(json['reason']),
|
|
37
|
+
'total': json['total'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function WorkflowFailureReasonCounterToJSON(json) {
|
|
41
|
+
return WorkflowFailureReasonCounterToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function WorkflowFailureReasonCounterToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'id': value['id'],
|
|
49
|
+
'reason': WorkflowFailureReasonToJSON(value['reason']),
|
|
50
|
+
'total': value['total'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -14,19 +14,19 @@
|
|
|
14
14
|
import { ResponseMetaFromJSON, ResponseMetaToJSON, } from './ResponseMeta.js';
|
|
15
15
|
import { WorkflowFromJSON, WorkflowToJSON, } from './Workflow.js';
|
|
16
16
|
/**
|
|
17
|
-
* Check if a given object implements the
|
|
17
|
+
* Check if a given object implements the WorkflowResponse interface.
|
|
18
18
|
*/
|
|
19
|
-
export function
|
|
19
|
+
export function instanceOfWorkflowResponse(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
|
|
27
|
-
return
|
|
26
|
+
export function WorkflowResponseFromJSON(json) {
|
|
27
|
+
return WorkflowResponseFromJSONTyped(json, false);
|
|
28
28
|
}
|
|
29
|
-
export function
|
|
29
|
+
export function WorkflowResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
30
|
if (json == null) {
|
|
31
31
|
return json;
|
|
32
32
|
}
|
|
@@ -36,10 +36,10 @@ export function SaveWorkspaceWorkflow200ResponseFromJSONTyped(json, ignoreDiscri
|
|
|
36
36
|
'meta': json['meta'] == null ? undefined : ResponseMetaFromJSON(json['meta']),
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
export function
|
|
40
|
-
return
|
|
39
|
+
export function WorkflowResponseToJSON(json) {
|
|
40
|
+
return WorkflowResponseToJSONTyped(json, false);
|
|
41
41
|
}
|
|
42
|
-
export function
|
|
42
|
+
export function WorkflowResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
43
|
if (value == null) {
|
|
44
44
|
return value;
|
|
45
45
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { WorkflowFailureReasonCounterFromJSON, WorkflowFailureReasonCounterToJSON, } from './WorkflowFailureReasonCounter.js';
|
|
14
15
|
import { WorkflowCounterFromJSON, WorkflowCounterToJSON, } from './WorkflowCounter.js';
|
|
15
16
|
/**
|
|
16
17
|
* Check if a given object implements the WorkflowStats interface.
|
|
@@ -46,6 +47,7 @@ export function WorkflowStatsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
47
|
'nodes': (json['nodes'].map(WorkflowCounterFromJSON)),
|
|
47
48
|
'edges': (json['edges'].map(WorkflowCounterFromJSON)),
|
|
48
49
|
'failed': (json['failed'].map(WorkflowCounterFromJSON)),
|
|
50
|
+
'failedReasons': json['failedReasons'] == null ? undefined : (json['failedReasons'].map(WorkflowFailureReasonCounterFromJSON)),
|
|
49
51
|
};
|
|
50
52
|
}
|
|
51
53
|
export function WorkflowStatsToJSON(json) {
|
|
@@ -64,5 +66,6 @@ export function WorkflowStatsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
64
66
|
'nodes': (value['nodes'].map(WorkflowCounterToJSON)),
|
|
65
67
|
'edges': (value['edges'].map(WorkflowCounterToJSON)),
|
|
66
68
|
'failed': (value['failed'].map(WorkflowCounterToJSON)),
|
|
69
|
+
'failedReasons': value['failedReasons'] == null ? undefined : (value['failedReasons'].map(WorkflowFailureReasonCounterToJSON)),
|
|
67
70
|
};
|
|
68
71
|
}
|