@widgetic/api-sdk-ts 1.11.111 → 1.11.151
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 +42 -42
- package/dist/apis/BrandKitApi.js +42 -42
- package/dist/apis/CanvasesApi.d.ts +15 -15
- package/dist/apis/CompositionsApi.d.ts +257 -155
- package/dist/apis/CompositionsApi.js +338 -134
- package/dist/apis/CreditsApi.d.ts +11 -11
- package/dist/apis/CreditsApi.js +5 -5
- 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/OrganizationsApi.d.ts +74 -0
- package/dist/apis/OrganizationsApi.js +205 -0
- package/dist/apis/PartnersApi.d.ts +133 -133
- package/dist/apis/PartnersApi.js +19 -19
- package/dist/apis/PublicEmbedApi.d.ts +57 -42
- package/dist/apis/PublicEmbedApi.js +64 -29
- package/dist/apis/TokensApi.d.ts +2 -0
- package/dist/apis/TokensApi.js +2 -0
- package/dist/apis/UploadsApi.d.ts +40 -40
- package/dist/apis/UploadsApi.js +60 -60
- package/dist/apis/UsersApi.d.ts +30 -86
- package/dist/apis/UsersApi.js +6 -154
- package/dist/apis/WidgetsApi.d.ts +25 -25
- package/dist/apis/WidgetsApi.js +38 -38
- package/dist/apis/WorkflowsApi.d.ts +115 -157
- package/dist/apis/WorkflowsApi.js +111 -221
- package/dist/apis/index.d.ts +1 -2
- package/dist/apis/index.js +1 -2
- package/dist/esm/apis/BrandKitApi.js +41 -41
- package/dist/esm/apis/CompositionsApi.js +338 -134
- package/dist/esm/apis/CreditsApi.js +6 -6
- 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/OrganizationsApi.js +168 -0
- package/dist/esm/apis/PartnersApi.js +20 -20
- package/dist/esm/apis/PublicEmbedApi.js +65 -30
- package/dist/esm/apis/TokensApi.js +2 -0
- package/dist/esm/apis/UploadsApi.js +60 -60
- package/dist/esm/apis/UsersApi.js +7 -155
- package/dist/esm/apis/WidgetsApi.js +39 -39
- package/dist/esm/apis/WorkflowsApi.js +111 -221
- 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/AddOrganizationDomainResponse.js +51 -0
- package/dist/esm/models/AddOrganizationDomainResponseData.js +44 -0
- package/dist/esm/models/{AddAiAnswersKnowledgeDocument201Response.js → AiAnswersKnowledgeDocumentResponse.js} +8 -8
- package/dist/esm/models/BrandKitTokens.js +3 -0
- package/dist/esm/models/BrandTextStyle.js +65 -0
- package/dist/esm/models/Canvas.js +3 -0
- package/dist/esm/models/CanvasActiveOperation.js +66 -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/CreateWidget201ResponseData.js +6 -0
- package/dist/esm/models/{CreateCompositionFromWidget201Response.js → DeleteOrganizationDomainResponse.js} +11 -11
- package/dist/esm/models/DeleteOrganizationDomainResponseData.js +41 -0
- 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/EditorSession.js +4 -0
- package/dist/esm/models/GetOperationResponse.js +51 -0
- package/dist/esm/models/{OperationsIdGetResponseData.js → GetOperationResponseData.js} +12 -11
- package/dist/esm/models/GetOperationResponseDataMetadata.js +69 -0
- package/dist/esm/models/GetOrganizationDomains200Response.js +51 -0
- 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/NewWidget.js +0 -1
- package/dist/esm/models/{PersonalWorkspaceDomain.js → OrganizationDomain.js} +12 -18
- package/dist/esm/models/PatchBrandKitRequest.js +3 -0
- package/dist/esm/models/PublicWorkflowEventsRequestEventsInner.js +11 -0
- package/dist/esm/models/{GetPublicWorkflow200Response.js → PublicWorkflowResponse.js} +8 -8
- package/dist/esm/models/UpdateOrganizationDomainResponse.js +51 -0
- package/dist/esm/models/Upload.js +2 -0
- package/dist/esm/models/UserApiKey.js +2 -0
- package/dist/esm/models/ValidateToken200ResponseData.js +3 -0
- package/dist/esm/models/ValidateToken200ResponseDataWorkspace.js +43 -0
- package/dist/esm/models/Widget.js +6 -0
- package/dist/esm/models/WidgetClarification.js +52 -0
- package/dist/esm/models/WidgetClarificationOption.js +51 -0
- package/dist/esm/models/WidgetClarificationQuestion.js +64 -0
- package/dist/esm/models/WidgetCodeChange.js +68 -0
- package/dist/esm/models/WidgetCodeChanges.js +48 -0
- package/dist/esm/models/WidgetNextStep.js +71 -0
- package/dist/esm/models/WidgetPlan.js +61 -0
- package/dist/esm/models/WidgetPlanDecisions.js +72 -0
- package/dist/esm/models/WidgetPlanDecisionsAdaptersInner.js +47 -0
- package/dist/esm/models/WidgetPlanDecisionsLibrariesInner.js +51 -0
- package/dist/esm/models/WidgetPlanDecisionsResponsive.js +51 -0
- package/dist/esm/models/WidgetPlanTask.js +80 -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 +43 -25
- package/dist/esm/runtime.js +1 -1
- package/dist/models/AccountCreditBalance.d.ts +2 -2
- 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/AddOrganizationDomainResponse.d.ts +46 -0
- package/dist/models/AddOrganizationDomainResponse.js +58 -0
- package/dist/models/AddOrganizationDomainResponseData.d.ts +39 -0
- package/dist/models/AddOrganizationDomainResponseData.js +51 -0
- package/dist/models/AiAnswersKnowledgeDocumentResponse.d.ts +46 -0
- package/dist/models/{AddAiAnswersKnowledgeDocument201Response.js → AiAnswersKnowledgeDocumentResponse.js} +13 -13
- package/dist/models/BrandKitTokens.d.ts +8 -1
- package/dist/models/BrandKitTokens.js +3 -0
- package/dist/models/BrandKitView.d.ts +1 -1
- package/dist/models/BrandTextStyle.d.ts +59 -0
- package/dist/models/BrandTextStyle.js +73 -0
- package/dist/models/Canvas.d.ts +7 -0
- package/dist/models/Canvas.js +3 -0
- package/dist/models/CanvasActiveOperation.d.ts +65 -0
- package/dist/models/CanvasActiveOperation.js +74 -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/CreateWidget201ResponseData.d.ts +18 -0
- package/dist/models/CreateWidget201ResponseData.js +6 -0
- package/dist/models/DeleteOrganizationDomainResponse.d.ts +46 -0
- package/dist/models/DeleteOrganizationDomainResponse.js +58 -0
- package/dist/models/DeleteOrganizationDomainResponseData.d.ts +32 -0
- package/dist/models/DeleteOrganizationDomainResponseData.js +48 -0
- 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/EditorSession.d.ts +7 -0
- package/dist/models/EditorSession.js +4 -0
- package/dist/models/GetOperationResponse.d.ts +46 -0
- package/dist/models/GetOperationResponse.js +58 -0
- package/dist/models/GetOperationResponseData.d.ts +86 -0
- package/dist/models/{OperationsIdGetResponseData.js → GetOperationResponseData.js} +18 -17
- package/dist/models/GetOperationResponseDataMetadata.d.ts +87 -0
- package/dist/models/GetOperationResponseDataMetadata.js +77 -0
- package/dist/models/GetOrganizationDomains200Response.d.ts +46 -0
- package/dist/models/GetOrganizationDomains200Response.js +58 -0
- 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/NewEditorSession.d.ts +1 -1
- package/dist/models/NewWidget.d.ts +2 -3
- package/dist/models/NewWidget.js +0 -1
- package/dist/models/OrganizationDomain.d.ts +56 -0
- package/dist/models/OrganizationDomain.js +56 -0
- package/dist/models/PartnerBillingOverviewOperationalCredits.d.ts +1 -1
- package/dist/models/PatchBrandKitRequest.d.ts +7 -0
- package/dist/models/PatchBrandKitRequest.js +3 -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/UpdateOrganizationDomainResponse.d.ts +46 -0
- package/dist/models/UpdateOrganizationDomainResponse.js +58 -0
- package/dist/models/Upload.d.ts +7 -1
- package/dist/models/Upload.js +2 -0
- package/dist/models/UploadLimits.d.ts +3 -3
- package/dist/models/UserApiKey.d.ts +6 -0
- package/dist/models/UserApiKey.js +2 -0
- package/dist/models/ValidateToken200ResponseData.d.ts +7 -0
- package/dist/models/ValidateToken200ResponseData.js +3 -0
- package/dist/models/ValidateToken200ResponseDataWorkspace.d.ts +38 -0
- package/dist/models/ValidateToken200ResponseDataWorkspace.js +50 -0
- package/dist/models/Widget.d.ts +18 -0
- package/dist/models/Widget.js +6 -0
- package/dist/models/WidgetClarification.d.ts +45 -0
- package/dist/models/WidgetClarification.js +59 -0
- package/dist/models/WidgetClarificationOption.d.ts +44 -0
- package/dist/models/WidgetClarificationOption.js +58 -0
- package/dist/models/WidgetClarificationQuestion.d.ts +63 -0
- package/dist/models/WidgetClarificationQuestion.js +71 -0
- package/dist/models/WidgetCodeChange.d.ts +70 -0
- package/dist/models/WidgetCodeChange.js +76 -0
- package/dist/models/WidgetCodeChanges.d.ts +39 -0
- package/dist/models/WidgetCodeChanges.js +55 -0
- package/dist/models/WidgetNextStep.d.ts +69 -0
- package/dist/models/WidgetNextStep.js +79 -0
- package/dist/models/WidgetPlan.d.ts +58 -0
- package/dist/models/WidgetPlan.js +68 -0
- package/dist/models/WidgetPlanDecisions.d.ts +77 -0
- package/dist/models/WidgetPlanDecisions.js +79 -0
- package/dist/models/WidgetPlanDecisionsAdaptersInner.d.ts +38 -0
- package/dist/models/WidgetPlanDecisionsAdaptersInner.js +54 -0
- package/dist/models/WidgetPlanDecisionsLibrariesInner.d.ts +44 -0
- package/dist/models/WidgetPlanDecisionsLibrariesInner.js +58 -0
- package/dist/models/WidgetPlanDecisionsResponsive.d.ts +44 -0
- package/dist/models/WidgetPlanDecisionsResponsive.js +58 -0
- package/dist/models/WidgetPlanTask.d.ts +77 -0
- package/dist/models/WidgetPlanTask.js +88 -0
- package/dist/models/WorkflowDetailAllOfLastEditedBy.d.ts +2 -2
- 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 +43 -25
- package/dist/models/index.js +43 -25
- 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 -2707
- package/dist/apis/PartnerApi.js +0 -7073
- package/dist/apis/WorkspacesApi.d.ts +0 -352
- package/dist/apis/WorkspacesApi.js +0 -946
- package/dist/esm/apis/PartnerApi.js +0 -7036
- package/dist/esm/apis/WorkspacesApi.js +0 -909
- package/dist/esm/models/DeletePersonalWorkspaceDomainResponse.js +0 -51
- package/dist/esm/models/DeletePersonalWorkspaceDomainResponseData.js +0 -41
- package/dist/esm/models/GetPersonalWorkspaceDomains200Response.js +0 -51
- package/dist/esm/models/PersonalWorkspaceDomainResult.js +0 -48
- package/dist/esm/models/PersonalWorkspaceDomainResultResponse.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/DeletePersonalWorkspaceDomainResponse.d.ts +0 -46
- package/dist/models/DeletePersonalWorkspaceDomainResponse.js +0 -58
- package/dist/models/DeletePersonalWorkspaceDomainResponseData.d.ts +0 -32
- package/dist/models/DeletePersonalWorkspaceDomainResponseData.js +0 -48
- 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/GetPersonalWorkspaceDomains200Response.d.ts +0 -46
- package/dist/models/GetPersonalWorkspaceDomains200Response.js +0 -58
- 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/OperationsIdGetResponseData.d.ts +0 -88
- package/dist/models/PersonalWorkspaceDomain.d.ts +0 -56
- package/dist/models/PersonalWorkspaceDomain.js +0 -62
- package/dist/models/PersonalWorkspaceDomainResult.d.ts +0 -39
- package/dist/models/PersonalWorkspaceDomainResult.js +0 -55
- package/dist/models/PersonalWorkspaceDomainResultResponse.d.ts +0 -46
- package/dist/models/PersonalWorkspaceDomainResultResponse.js +0 -58
- 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
|
@@ -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,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
|
+
import { ResponseMetaFromJSON, ResponseMetaToJSON, } from './ResponseMeta.js';
|
|
15
|
+
import { AddOrganizationDomainResponseDataFromJSON, AddOrganizationDomainResponseDataToJSON, } from './AddOrganizationDomainResponseData.js';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the UpdateOrganizationDomainResponse interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfUpdateOrganizationDomainResponse(value) {
|
|
20
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function UpdateOrganizationDomainResponseFromJSON(json) {
|
|
27
|
+
return UpdateOrganizationDomainResponseFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function UpdateOrganizationDomainResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'success': json['success'],
|
|
35
|
+
'data': AddOrganizationDomainResponseDataFromJSON(json['data']),
|
|
36
|
+
'meta': json['meta'] == null ? undefined : ResponseMetaFromJSON(json['meta']),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function UpdateOrganizationDomainResponseToJSON(json) {
|
|
40
|
+
return UpdateOrganizationDomainResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function UpdateOrganizationDomainResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'success': value['success'],
|
|
48
|
+
'data': AddOrganizationDomainResponseDataToJSON(value['data']),
|
|
49
|
+
'meta': ResponseMetaToJSON(value['meta']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -82,6 +82,7 @@ export function UploadFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
82
82
|
'conversation_id': json['conversation_id'] == null ? undefined : json['conversation_id'],
|
|
83
83
|
'managed_user_id': json['managed_user_id'] == null ? undefined : json['managed_user_id'],
|
|
84
84
|
'purpose': json['purpose'] == null ? undefined : json['purpose'],
|
|
85
|
+
'library_folder_path': json['library_folder_path'] == null ? undefined : json['library_folder_path'],
|
|
85
86
|
};
|
|
86
87
|
}
|
|
87
88
|
export function UploadToJSON(json) {
|
|
@@ -106,5 +107,6 @@ export function UploadToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
106
107
|
'conversation_id': value['conversation_id'],
|
|
107
108
|
'managed_user_id': value['managed_user_id'],
|
|
108
109
|
'purpose': value['purpose'],
|
|
110
|
+
'library_folder_path': value['library_folder_path'],
|
|
109
111
|
};
|
|
110
112
|
}
|
|
@@ -56,6 +56,7 @@ export function UserApiKeyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
56
|
'expiresAt': json['expiresAt'] == null ? undefined : (new Date(json['expiresAt'])),
|
|
57
57
|
'lastUsedAt': json['lastUsedAt'] == null ? undefined : (new Date(json['lastUsedAt'])),
|
|
58
58
|
'isActive': json['isActive'],
|
|
59
|
+
'organizationId': json['organizationId'] == null ? undefined : json['organizationId'],
|
|
59
60
|
'scopes': (json['scopes'].map(ApiKeyScopeFromJSON)),
|
|
60
61
|
'preset': json['preset'],
|
|
61
62
|
};
|
|
@@ -75,6 +76,7 @@ export function UserApiKeyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
75
76
|
'expiresAt': value['expiresAt'] == null ? undefined : (value['expiresAt'].toISOString()),
|
|
76
77
|
'lastUsedAt': value['lastUsedAt'] == null ? undefined : (value['lastUsedAt'].toISOString()),
|
|
77
78
|
'isActive': value['isActive'],
|
|
79
|
+
'organizationId': value['organizationId'],
|
|
78
80
|
'scopes': (value['scopes'].map(ApiKeyScopeToJSON)),
|
|
79
81
|
'preset': value['preset'],
|
|
80
82
|
};
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { ValidateToken200ResponseDataWorkspaceFromJSON, ValidateToken200ResponseDataWorkspaceToJSON, } from './ValidateToken200ResponseDataWorkspace.js';
|
|
14
15
|
/**
|
|
15
16
|
* @export
|
|
16
17
|
*/
|
|
@@ -38,6 +39,7 @@ export function ValidateToken200ResponseDataFromJSONTyped(json, ignoreDiscrimina
|
|
|
38
39
|
'scopes': json['scopes'] == null ? undefined : json['scopes'],
|
|
39
40
|
'userId': json['userId'] == null ? undefined : json['userId'],
|
|
40
41
|
'expiresAt': json['expiresAt'] == null ? undefined : (new Date(json['expiresAt'])),
|
|
42
|
+
'workspace': json['workspace'] == null ? undefined : ValidateToken200ResponseDataWorkspaceFromJSON(json['workspace']),
|
|
41
43
|
};
|
|
42
44
|
}
|
|
43
45
|
export function ValidateToken200ResponseDataToJSON(json) {
|
|
@@ -53,5 +55,6 @@ export function ValidateToken200ResponseDataToJSONTyped(value, ignoreDiscriminat
|
|
|
53
55
|
'scopes': value['scopes'],
|
|
54
56
|
'userId': value['userId'],
|
|
55
57
|
'expiresAt': value['expiresAt'] == null ? undefined : ((value['expiresAt']).toISOString()),
|
|
58
|
+
'workspace': ValidateToken200ResponseDataWorkspaceToJSON(value['workspace']),
|
|
56
59
|
};
|
|
57
60
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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 ValidateToken200ResponseDataWorkspace interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfValidateToken200ResponseDataWorkspace(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function ValidateToken200ResponseDataWorkspaceFromJSON(json) {
|
|
21
|
+
return ValidateToken200ResponseDataWorkspaceFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function ValidateToken200ResponseDataWorkspaceFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
29
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function ValidateToken200ResponseDataWorkspaceToJSON(json) {
|
|
33
|
+
return ValidateToken200ResponseDataWorkspaceToJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function ValidateToken200ResponseDataWorkspaceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'id': value['id'],
|
|
41
|
+
'name': value['name'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -44,11 +44,14 @@ export function WidgetFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
45
45
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
46
46
|
'jsPath': json['jsPath'] == null ? undefined : json['jsPath'],
|
|
47
|
+
'thumbnailSvg': json['thumbnailSvg'] == null ? undefined : json['thumbnailSvg'],
|
|
47
48
|
'canvasId': json['canvasId'] == null ? undefined : json['canvasId'],
|
|
48
49
|
'repoId': json['repoId'] == null ? undefined : json['repoId'],
|
|
49
50
|
'databaseId': json['databaseId'] == null ? undefined : json['databaseId'],
|
|
50
51
|
'version': json['version'] == null ? undefined : json['version'],
|
|
51
52
|
'lastCommitSha': json['lastCommitSha'] == null ? undefined : json['lastCommitSha'],
|
|
53
|
+
'hasUnpublishedChanges': json['hasUnpublishedChanges'] == null ? undefined : json['hasUnpublishedChanges'],
|
|
54
|
+
'publishedAt': json['publishedAt'] == null ? undefined : (new Date(json['publishedAt'])),
|
|
52
55
|
'organizationId': json['organizationId'] == null ? undefined : json['organizationId'],
|
|
53
56
|
'projectFolder': json['projectFolder'] == null ? undefined : json['projectFolder'],
|
|
54
57
|
'workspaceType': json['workspaceType'] == null ? undefined : json['workspaceType'],
|
|
@@ -75,11 +78,14 @@ export function WidgetToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
75
78
|
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
76
79
|
'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
|
|
77
80
|
'jsPath': value['jsPath'],
|
|
81
|
+
'thumbnailSvg': value['thumbnailSvg'],
|
|
78
82
|
'canvasId': value['canvasId'],
|
|
79
83
|
'repoId': value['repoId'],
|
|
80
84
|
'databaseId': value['databaseId'],
|
|
81
85
|
'version': value['version'],
|
|
82
86
|
'lastCommitSha': value['lastCommitSha'],
|
|
87
|
+
'hasUnpublishedChanges': value['hasUnpublishedChanges'],
|
|
88
|
+
'publishedAt': value['publishedAt'] == null ? undefined : (value['publishedAt'].toISOString()),
|
|
83
89
|
'organizationId': value['organizationId'],
|
|
84
90
|
'projectFolder': value['projectFolder'],
|
|
85
91
|
'workspaceType': value['workspaceType'],
|
|
@@ -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,64 @@
|
|
|
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
|
+
if (!('allowMultiple' in value) || value['allowMultiple'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
export function WidgetClarificationQuestionFromJSON(json) {
|
|
34
|
+
return WidgetClarificationQuestionFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function WidgetClarificationQuestionFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'id': json['id'],
|
|
42
|
+
'question': json['question'],
|
|
43
|
+
'recommendedWord': json['recommendedWord'],
|
|
44
|
+
'options': (json['options'].map(WidgetClarificationOptionFromJSON)),
|
|
45
|
+
'allowOther': json['allowOther'],
|
|
46
|
+
'allowMultiple': json['allowMultiple'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export function WidgetClarificationQuestionToJSON(json) {
|
|
50
|
+
return WidgetClarificationQuestionToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
export function WidgetClarificationQuestionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'id': value['id'],
|
|
58
|
+
'question': value['question'],
|
|
59
|
+
'recommendedWord': value['recommendedWord'],
|
|
60
|
+
'options': (value['options'].map(WidgetClarificationOptionToJSON)),
|
|
61
|
+
'allowOther': value['allowOther'],
|
|
62
|
+
'allowMultiple': value['allowMultiple'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -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
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const WidgetCodeChangeStatusEnum = {
|
|
18
|
+
Added: 'added',
|
|
19
|
+
Modified: 'modified'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the WidgetCodeChange interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfWidgetCodeChange(value) {
|
|
25
|
+
if (!('path' in value) || value['path'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('additions' in value) || value['additions'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('deletions' in value) || value['deletions'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('patch' in value) || value['patch'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
export function WidgetCodeChangeFromJSON(json) {
|
|
38
|
+
return WidgetCodeChangeFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function WidgetCodeChangeFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'path': json['path'],
|
|
46
|
+
'status': json['status'],
|
|
47
|
+
'additions': json['additions'],
|
|
48
|
+
'deletions': json['deletions'],
|
|
49
|
+
'patch': json['patch'],
|
|
50
|
+
'truncated': json['truncated'] == null ? undefined : json['truncated'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export function WidgetCodeChangeToJSON(json) {
|
|
54
|
+
return WidgetCodeChangeToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
export function WidgetCodeChangeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'path': value['path'],
|
|
62
|
+
'status': value['status'],
|
|
63
|
+
'additions': value['additions'],
|
|
64
|
+
'deletions': value['deletions'],
|
|
65
|
+
'patch': value['patch'],
|
|
66
|
+
'truncated': value['truncated'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -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 { WidgetCodeChangeFromJSON, WidgetCodeChangeToJSON, } from './WidgetCodeChange.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the WidgetCodeChanges interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfWidgetCodeChanges(value) {
|
|
19
|
+
if (!('files' in value) || value['files'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('omittedFiles' in value) || value['omittedFiles'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function WidgetCodeChangesFromJSON(json) {
|
|
26
|
+
return WidgetCodeChangesFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function WidgetCodeChangesFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'files': (json['files'].map(WidgetCodeChangeFromJSON)),
|
|
34
|
+
'omittedFiles': json['omittedFiles'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function WidgetCodeChangesToJSON(json) {
|
|
38
|
+
return WidgetCodeChangesToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function WidgetCodeChangesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'files': (value['files'].map(WidgetCodeChangeToJSON)),
|
|
46
|
+
'omittedFiles': value['omittedFiles'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
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 (!('title' in value) || value['title'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('kind' in value) || value['kind'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('recommended' in value) || value['recommended'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
export function WidgetNextStepFromJSON(json) {
|
|
43
|
+
return WidgetNextStepFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function WidgetNextStepFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': json['id'],
|
|
51
|
+
'label': json['label'],
|
|
52
|
+
'title': json['title'],
|
|
53
|
+
'kind': json['kind'],
|
|
54
|
+
'recommended': json['recommended'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export function WidgetNextStepToJSON(json) {
|
|
58
|
+
return WidgetNextStepToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
export function WidgetNextStepToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'id': value['id'],
|
|
66
|
+
'label': value['label'],
|
|
67
|
+
'title': value['title'],
|
|
68
|
+
'kind': value['kind'],
|
|
69
|
+
'recommended': value['recommended'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -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
|
+
}
|