@widgetic/api-sdk-ts 2.0.2 → 3.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/dist/apis/CompositionsApi.d.ts +1 -0
- package/dist/apis/CompositionsApi.js +3 -0
- package/dist/apis/CreditsApi.d.ts +4 -4
- package/dist/apis/CreditsApi.js +4 -4
- package/dist/apis/ManagedUsersApi.d.ts +2 -2
- package/dist/apis/ManagedUsersApi.js +2 -2
- package/dist/apis/OrganizationsApi.d.ts +74 -0
- package/dist/apis/OrganizationsApi.js +205 -0
- package/dist/apis/PartnersApi.d.ts +8 -8
- package/dist/apis/PartnersApi.js +8 -8
- package/dist/apis/TokensApi.d.ts +2 -2
- package/dist/apis/TokensApi.js +2 -2
- package/dist/apis/UploadsApi.d.ts +4 -4
- package/dist/apis/UploadsApi.js +4 -4
- package/dist/apis/UsersApi.d.ts +3 -59
- package/dist/apis/UsersApi.js +2 -150
- package/dist/apis/WidgetsApi.d.ts +2 -2
- package/dist/apis/WidgetsApi.js +2 -2
- package/dist/apis/WorkflowsApi.d.ts +38 -38
- package/dist/apis/WorkflowsApi.js +38 -38
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/CompositionsApi.js +3 -0
- package/dist/esm/apis/CreditsApi.js +4 -4
- package/dist/esm/apis/ManagedUsersApi.js +2 -2
- package/dist/esm/apis/OrganizationsApi.js +168 -0
- package/dist/esm/apis/PartnersApi.js +8 -8
- package/dist/esm/apis/TokensApi.js +2 -2
- package/dist/esm/apis/UploadsApi.js +4 -4
- package/dist/esm/apis/UsersApi.js +3 -151
- package/dist/esm/apis/WidgetsApi.js +2 -2
- package/dist/esm/apis/WorkflowsApi.js +38 -38
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/{GetPersonalWorkspaceDomains200Response.js → AddOrganizationDomainResponse.js} +11 -11
- package/dist/esm/models/AddOrganizationDomainResponseData.js +44 -0
- package/dist/esm/models/Canvas.js +3 -0
- package/dist/esm/models/CanvasActiveOperation.js +66 -0
- package/dist/esm/models/CreateWidget201ResponseData.js +6 -0
- package/dist/esm/models/{PersonalWorkspaceDomainResultResponse.js → DeleteOrganizationDomainResponse.js} +11 -11
- package/dist/esm/models/DeleteOrganizationDomainResponseData.js +41 -0
- package/dist/esm/models/EditorSession.js +4 -0
- package/dist/esm/models/GetOperationResponseDataMetadata.js +11 -0
- package/dist/esm/models/GetOrganizationDomains200Response.js +51 -0
- package/dist/esm/models/NewWidget.js +0 -1
- package/dist/esm/models/{PersonalWorkspaceDomain.js → OrganizationDomain.js} +12 -18
- package/dist/esm/models/{DeletePersonalWorkspaceDomainResponse.js → UpdateOrganizationDomainResponse.js} +11 -11
- 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/WidgetClarificationQuestion.js +4 -0
- package/dist/esm/models/WidgetCodeChange.js +68 -0
- package/dist/esm/models/WidgetCodeChanges.js +48 -0
- package/dist/esm/models/WidgetNextStep.js +4 -0
- package/dist/esm/models/index.js +11 -6
- package/dist/esm/runtime.js +1 -1
- package/dist/models/AccountCreditBalance.d.ts +2 -2
- 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/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/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/EditorSession.d.ts +7 -0
- package/dist/models/EditorSession.js +4 -0
- package/dist/models/GetOperationResponseDataMetadata.d.ts +23 -1
- package/dist/models/GetOperationResponseDataMetadata.js +12 -1
- package/dist/models/GetOrganizationDomains200Response.d.ts +46 -0
- package/dist/models/GetOrganizationDomains200Response.js +58 -0
- 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/UpdateOrganizationDomainResponse.d.ts +46 -0
- package/dist/models/UpdateOrganizationDomainResponse.js +58 -0
- package/dist/models/Upload.d.ts +6 -0
- package/dist/models/Upload.js +2 -0
- 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/WidgetClarificationQuestion.d.ts +6 -0
- package/dist/models/WidgetClarificationQuestion.js +4 -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 +7 -1
- package/dist/models/WidgetNextStep.js +4 -0
- package/dist/models/WorkflowDetailAllOfLastEditedBy.d.ts +2 -2
- package/dist/models/index.d.ts +11 -6
- package/dist/models/index.js +11 -6
- package/dist/runtime.d.ts +2 -2
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/dist/esm/models/DeletePersonalWorkspaceDomainResponseData.js +0 -41
- package/dist/esm/models/PersonalWorkspaceDomainResult.js +0 -48
- 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/GetPersonalWorkspaceDomains200Response.d.ts +0 -46
- package/dist/models/GetPersonalWorkspaceDomains200Response.js +0 -58
- 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/esm/models/index.js
CHANGED
|
@@ -11,6 +11,8 @@ export * from './AdapterConnectionRemovalResponse.js';
|
|
|
11
11
|
export * from './AdapterConnectionResponse.js';
|
|
12
12
|
export * from './AddAiAnswersKnowledgeDocumentRequest.js';
|
|
13
13
|
export * from './AddDomainRequest.js';
|
|
14
|
+
export * from './AddOrganizationDomainResponse.js';
|
|
15
|
+
export * from './AddOrganizationDomainResponseData.js';
|
|
14
16
|
export * from './AiAnswersKnowledge.js';
|
|
15
17
|
export * from './AiAnswersKnowledgeDocument.js';
|
|
16
18
|
export * from './AiAnswersKnowledgeDocumentResponse.js';
|
|
@@ -29,6 +31,7 @@ export * from './BrandKitViewResponse.js';
|
|
|
29
31
|
export * from './BrandSpacing.js';
|
|
30
32
|
export * from './BrandTextStyle.js';
|
|
31
33
|
export * from './Canvas.js';
|
|
34
|
+
export * from './CanvasActiveOperation.js';
|
|
32
35
|
export * from './CanvasResponse.js';
|
|
33
36
|
export * from './CheckCompositionAccessResponse.js';
|
|
34
37
|
export * from './CheckCompositionAccessResponseData.js';
|
|
@@ -74,8 +77,8 @@ export * from './DeleteCompositionContentItemResponse.js';
|
|
|
74
77
|
export * from './DeleteCompositionContentItemResponseData.js';
|
|
75
78
|
export * from './DeleteCompositionDataSourceResponse.js';
|
|
76
79
|
export * from './DeleteCompositionDataSourceResponseData.js';
|
|
77
|
-
export * from './
|
|
78
|
-
export * from './
|
|
80
|
+
export * from './DeleteOrganizationDomainResponse.js';
|
|
81
|
+
export * from './DeleteOrganizationDomainResponseData.js';
|
|
79
82
|
export * from './DeleteUpload200Response.js';
|
|
80
83
|
export * from './DeleteUpload200ResponseData.js';
|
|
81
84
|
export * from './DeleteUserApiKeyResponse.js';
|
|
@@ -126,10 +129,10 @@ export * from './GetManagedUsersByManagerIdResponseData.js';
|
|
|
126
129
|
export * from './GetOperationResponse.js';
|
|
127
130
|
export * from './GetOperationResponseData.js';
|
|
128
131
|
export * from './GetOperationResponseDataMetadata.js';
|
|
132
|
+
export * from './GetOrganizationDomains200Response.js';
|
|
129
133
|
export * from './GetPartnerBillingOverview200Response.js';
|
|
130
134
|
export * from './GetPartnerEntitlementsResponse.js';
|
|
131
135
|
export * from './GetPartnerEntitlementsResponseData.js';
|
|
132
|
-
export * from './GetPersonalWorkspaceDomains200Response.js';
|
|
133
136
|
export * from './GetPublicCompositionEmbed200Response.js';
|
|
134
137
|
export * from './GetPublicCompositionEmbed200ResponseAdapters.js';
|
|
135
138
|
export * from './GetPublicCompositionEmbed200ResponseAdaptersCaptcha.js';
|
|
@@ -178,6 +181,7 @@ export * from './OfferWorkflowPresetRequest.js';
|
|
|
178
181
|
export * from './OfferedWorkflowPreset.js';
|
|
179
182
|
export * from './OfferedWorkflowPresetList.js';
|
|
180
183
|
export * from './OfferedWorkflowPresetWidget.js';
|
|
184
|
+
export * from './OrganizationDomain.js';
|
|
181
185
|
export * from './PartnerAnalyticsByManagedUser.js';
|
|
182
186
|
export * from './PartnerAnalyticsByManagedUserResponse.js';
|
|
183
187
|
export * from './PartnerAnalyticsOfDay.js';
|
|
@@ -244,9 +248,6 @@ export * from './PatchBrandKitAssetRequest.js';
|
|
|
244
248
|
export * from './PatchBrandKitRequest.js';
|
|
245
249
|
export * from './PatchBrandKitRequestFonts.js';
|
|
246
250
|
export * from './PatchBrandKitRequestSpacing.js';
|
|
247
|
-
export * from './PersonalWorkspaceDomain.js';
|
|
248
|
-
export * from './PersonalWorkspaceDomainResult.js';
|
|
249
|
-
export * from './PersonalWorkspaceDomainResultResponse.js';
|
|
250
251
|
export * from './PostBrandKitIconRequest.js';
|
|
251
252
|
export * from './PostPublicCompositionEmbedStatus200Response.js';
|
|
252
253
|
export * from './PostPublicCompositionEmbedStatus200ResponseData.js';
|
|
@@ -301,6 +302,7 @@ export * from './UpdateComposition.js';
|
|
|
301
302
|
export * from './UpdateCompositionStatusRequest.js';
|
|
302
303
|
export * from './UpdateDomainRequest.js';
|
|
303
304
|
export * from './UpdateManagedUser.js';
|
|
305
|
+
export * from './UpdateOrganizationDomainResponse.js';
|
|
304
306
|
export * from './UpdatePartnerEntryContextSigningRequest.js';
|
|
305
307
|
export * from './UpdatePartnerNotificationSettingsRequest.js';
|
|
306
308
|
export * from './UpdateUserApiKeyRequest.js';
|
|
@@ -315,10 +317,13 @@ export * from './ValidateCompositionContentResponse.js';
|
|
|
315
317
|
export * from './ValidateCompositionContentResponseData.js';
|
|
316
318
|
export * from './ValidateToken200Response.js';
|
|
317
319
|
export * from './ValidateToken200ResponseData.js';
|
|
320
|
+
export * from './ValidateToken200ResponseDataWorkspace.js';
|
|
318
321
|
export * from './Widget.js';
|
|
319
322
|
export * from './WidgetClarification.js';
|
|
320
323
|
export * from './WidgetClarificationOption.js';
|
|
321
324
|
export * from './WidgetClarificationQuestion.js';
|
|
325
|
+
export * from './WidgetCodeChange.js';
|
|
326
|
+
export * from './WidgetCodeChanges.js';
|
|
322
327
|
export * from './WidgetNextStep.js';
|
|
323
328
|
export * from './WidgetPlan.js';
|
|
324
329
|
export * from './WidgetPlanDecisions.js';
|
package/dist/esm/runtime.js
CHANGED
|
@@ -29,7 +29,7 @@ export const BASE_PATH = "https://api.widgetic.com/v1".replace(/\/+$/, "");
|
|
|
29
29
|
// runs. The version is the one in this package's package.json: `scripts/deploy-sdk.sh` reads it and hands it to the
|
|
30
30
|
// generator as `npmVersion`, so the number a call reports is the number on npm.
|
|
31
31
|
export const SDK_NAME = "@widgetic/api-sdk-ts";
|
|
32
|
-
export const SDK_VERSION = "
|
|
32
|
+
export const SDK_VERSION = "3.0.0";
|
|
33
33
|
export const SDK_VERSION_HEADER = "X-SDK-Version";
|
|
34
34
|
export const SDK_VERSION_HEADER_VALUE = `${SDK_NAME}/${SDK_VERSION}`;
|
|
35
35
|
export class Configuration {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* The credits an account holds.
|
|
13
|
+
* The credits an account holds in one workspace. A workspace's credits are its own and can be spent in that workspace only, so the same person reads a different balance in each workspace they belong to, and a workspace nobody subscribed holds none.
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
16
16
|
* @interface AccountCreditBalance
|
|
@@ -29,7 +29,7 @@ export interface AccountCreditBalance {
|
|
|
29
29
|
*/
|
|
30
30
|
userId?: string;
|
|
31
31
|
/**
|
|
32
|
-
* Credits the account holds
|
|
32
|
+
* Credits the account holds in the workspace the request acts in
|
|
33
33
|
* @type {number}
|
|
34
34
|
* @memberof AccountCreditBalance
|
|
35
35
|
*/
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Widgetic API Gateway
|
|
3
|
+
* API documentation for the Widgetic API Gateway
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ResponseMeta } from './ResponseMeta';
|
|
13
|
+
import type { AddOrganizationDomainResponseData } from './AddOrganizationDomainResponseData';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AddOrganizationDomainResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface AddOrganizationDomainResponse {
|
|
20
|
+
/**
|
|
21
|
+
* Always `true` on a success.
|
|
22
|
+
* @type {boolean}
|
|
23
|
+
* @memberof AddOrganizationDomainResponse
|
|
24
|
+
*/
|
|
25
|
+
success: boolean;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {AddOrganizationDomainResponseData}
|
|
29
|
+
* @memberof AddOrganizationDomainResponse
|
|
30
|
+
*/
|
|
31
|
+
data: AddOrganizationDomainResponseData;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {ResponseMeta}
|
|
35
|
+
* @memberof AddOrganizationDomainResponse
|
|
36
|
+
*/
|
|
37
|
+
meta?: ResponseMeta;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the AddOrganizationDomainResponse interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfAddOrganizationDomainResponse(value: object): value is AddOrganizationDomainResponse;
|
|
43
|
+
export declare function AddOrganizationDomainResponseFromJSON(json: any): AddOrganizationDomainResponse;
|
|
44
|
+
export declare function AddOrganizationDomainResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddOrganizationDomainResponse;
|
|
45
|
+
export declare function AddOrganizationDomainResponseToJSON(json: any): AddOrganizationDomainResponse;
|
|
46
|
+
export declare function AddOrganizationDomainResponseToJSONTyped(value?: AddOrganizationDomainResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Widgetic API Gateway
|
|
6
|
+
* API documentation for the Widgetic API Gateway
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAddOrganizationDomainResponse = instanceOfAddOrganizationDomainResponse;
|
|
17
|
+
exports.AddOrganizationDomainResponseFromJSON = AddOrganizationDomainResponseFromJSON;
|
|
18
|
+
exports.AddOrganizationDomainResponseFromJSONTyped = AddOrganizationDomainResponseFromJSONTyped;
|
|
19
|
+
exports.AddOrganizationDomainResponseToJSON = AddOrganizationDomainResponseToJSON;
|
|
20
|
+
exports.AddOrganizationDomainResponseToJSONTyped = AddOrganizationDomainResponseToJSONTyped;
|
|
21
|
+
const ResponseMeta_1 = require("./ResponseMeta");
|
|
22
|
+
const AddOrganizationDomainResponseData_1 = require("./AddOrganizationDomainResponseData");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the AddOrganizationDomainResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfAddOrganizationDomainResponse(value) {
|
|
27
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function AddOrganizationDomainResponseFromJSON(json) {
|
|
34
|
+
return AddOrganizationDomainResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function AddOrganizationDomainResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'success': json['success'],
|
|
42
|
+
'data': (0, AddOrganizationDomainResponseData_1.AddOrganizationDomainResponseDataFromJSON)(json['data']),
|
|
43
|
+
'meta': json['meta'] == null ? undefined : (0, ResponseMeta_1.ResponseMetaFromJSON)(json['meta']),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function AddOrganizationDomainResponseToJSON(json) {
|
|
47
|
+
return AddOrganizationDomainResponseToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function AddOrganizationDomainResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'success': value['success'],
|
|
55
|
+
'data': (0, AddOrganizationDomainResponseData_1.AddOrganizationDomainResponseDataToJSON)(value['data']),
|
|
56
|
+
'meta': (0, ResponseMeta_1.ResponseMetaToJSON)(value['meta']),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Widgetic API Gateway
|
|
3
|
+
* API documentation for the Widgetic API Gateway
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { OrganizationDomain } from './OrganizationDomain';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AddOrganizationDomainResponseData
|
|
17
|
+
*/
|
|
18
|
+
export interface AddOrganizationDomainResponseData {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AddOrganizationDomainResponseData
|
|
23
|
+
*/
|
|
24
|
+
message?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {OrganizationDomain}
|
|
28
|
+
* @memberof AddOrganizationDomainResponseData
|
|
29
|
+
*/
|
|
30
|
+
domain?: OrganizationDomain;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the AddOrganizationDomainResponseData interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfAddOrganizationDomainResponseData(value: object): value is AddOrganizationDomainResponseData;
|
|
36
|
+
export declare function AddOrganizationDomainResponseDataFromJSON(json: any): AddOrganizationDomainResponseData;
|
|
37
|
+
export declare function AddOrganizationDomainResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddOrganizationDomainResponseData;
|
|
38
|
+
export declare function AddOrganizationDomainResponseDataToJSON(json: any): AddOrganizationDomainResponseData;
|
|
39
|
+
export declare function AddOrganizationDomainResponseDataToJSONTyped(value?: AddOrganizationDomainResponseData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Widgetic API Gateway
|
|
6
|
+
* API documentation for the Widgetic API Gateway
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAddOrganizationDomainResponseData = instanceOfAddOrganizationDomainResponseData;
|
|
17
|
+
exports.AddOrganizationDomainResponseDataFromJSON = AddOrganizationDomainResponseDataFromJSON;
|
|
18
|
+
exports.AddOrganizationDomainResponseDataFromJSONTyped = AddOrganizationDomainResponseDataFromJSONTyped;
|
|
19
|
+
exports.AddOrganizationDomainResponseDataToJSON = AddOrganizationDomainResponseDataToJSON;
|
|
20
|
+
exports.AddOrganizationDomainResponseDataToJSONTyped = AddOrganizationDomainResponseDataToJSONTyped;
|
|
21
|
+
const OrganizationDomain_1 = require("./OrganizationDomain");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AddOrganizationDomainResponseData interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAddOrganizationDomainResponseData(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function AddOrganizationDomainResponseDataFromJSON(json) {
|
|
29
|
+
return AddOrganizationDomainResponseDataFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function AddOrganizationDomainResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
37
|
+
'domain': json['domain'] == null ? undefined : (0, OrganizationDomain_1.OrganizationDomainFromJSON)(json['domain']),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function AddOrganizationDomainResponseDataToJSON(json) {
|
|
41
|
+
return AddOrganizationDomainResponseDataToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AddOrganizationDomainResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'message': value['message'],
|
|
49
|
+
'domain': (0, OrganizationDomain_1.OrganizationDomainToJSON)(value['domain']),
|
|
50
|
+
};
|
|
51
|
+
}
|
package/dist/models/Canvas.d.ts
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { CanvasActiveOperation } from './CanvasActiveOperation';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -63,6 +64,12 @@ export interface Canvas {
|
|
|
63
64
|
* @memberof Canvas
|
|
64
65
|
*/
|
|
65
66
|
updatedAt: Date;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {CanvasActiveOperation}
|
|
70
|
+
* @memberof Canvas
|
|
71
|
+
*/
|
|
72
|
+
activeOperation?: CanvasActiveOperation;
|
|
66
73
|
}
|
|
67
74
|
/**
|
|
68
75
|
* Check if a given object implements the Canvas interface.
|
package/dist/models/Canvas.js
CHANGED
|
@@ -18,6 +18,7 @@ exports.CanvasFromJSON = CanvasFromJSON;
|
|
|
18
18
|
exports.CanvasFromJSONTyped = CanvasFromJSONTyped;
|
|
19
19
|
exports.CanvasToJSON = CanvasToJSON;
|
|
20
20
|
exports.CanvasToJSONTyped = CanvasToJSONTyped;
|
|
21
|
+
const CanvasActiveOperation_1 = require("./CanvasActiveOperation");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the Canvas interface.
|
|
23
24
|
*/
|
|
@@ -48,6 +49,7 @@ function CanvasFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
49
|
'managedUserId': json['managedUserId'] == null ? undefined : json['managedUserId'],
|
|
49
50
|
'createdAt': (new Date(json['createdAt'])),
|
|
50
51
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
52
|
+
'activeOperation': json['activeOperation'] == null ? undefined : (0, CanvasActiveOperation_1.CanvasActiveOperationFromJSON)(json['activeOperation']),
|
|
51
53
|
};
|
|
52
54
|
}
|
|
53
55
|
function CanvasToJSON(json) {
|
|
@@ -66,5 +68,6 @@ function CanvasToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
66
68
|
'managedUserId': value['managedUserId'],
|
|
67
69
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
68
70
|
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
71
|
+
'activeOperation': (0, CanvasActiveOperation_1.CanvasActiveOperationToJSON)(value['activeOperation']),
|
|
69
72
|
};
|
|
70
73
|
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Widgetic API Gateway
|
|
3
|
+
* API documentation for the Widgetic API Gateway
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The build that is running on the canvas's primary widget right now, so an editor that opens the canvas while it runs (an agent started it) can follow it. Present only on `getCanvas`, only while the build has not ended, and only for a caller who may see that operation (the account that started it; an editor session only for its own managed user). Absent otherwise. Read the operation itself with `getOperation`.
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CanvasActiveOperation
|
|
17
|
+
*/
|
|
18
|
+
export interface CanvasActiveOperation {
|
|
19
|
+
/**
|
|
20
|
+
* The operation to follow (`getOperation`, or the operations stream).
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof CanvasActiveOperation
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* What the operation does; `code-generate` for the build of a widget.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CanvasActiveOperation
|
|
29
|
+
*/
|
|
30
|
+
type: string;
|
|
31
|
+
/**
|
|
32
|
+
* Where the build stands. A build that has ended is never listed.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof CanvasActiveOperation
|
|
35
|
+
*/
|
|
36
|
+
status: CanvasActiveOperationStatusEnum;
|
|
37
|
+
/**
|
|
38
|
+
* How far the build has got, in percent.
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof CanvasActiveOperation
|
|
41
|
+
*/
|
|
42
|
+
progress: number;
|
|
43
|
+
/**
|
|
44
|
+
* The widget the build works on, the canvas's primary widget.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof CanvasActiveOperation
|
|
47
|
+
*/
|
|
48
|
+
widgetId: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @export
|
|
52
|
+
*/
|
|
53
|
+
export declare const CanvasActiveOperationStatusEnum: {
|
|
54
|
+
readonly Pending: 'pending';
|
|
55
|
+
readonly Running: 'running';
|
|
56
|
+
};
|
|
57
|
+
export type CanvasActiveOperationStatusEnum = typeof CanvasActiveOperationStatusEnum[keyof typeof CanvasActiveOperationStatusEnum];
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the CanvasActiveOperation interface.
|
|
60
|
+
*/
|
|
61
|
+
export declare function instanceOfCanvasActiveOperation(value: object): value is CanvasActiveOperation;
|
|
62
|
+
export declare function CanvasActiveOperationFromJSON(json: any): CanvasActiveOperation;
|
|
63
|
+
export declare function CanvasActiveOperationFromJSONTyped(json: any, ignoreDiscriminator: boolean): CanvasActiveOperation;
|
|
64
|
+
export declare function CanvasActiveOperationToJSON(json: any): CanvasActiveOperation;
|
|
65
|
+
export declare function CanvasActiveOperationToJSONTyped(value?: CanvasActiveOperation | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Widgetic API Gateway
|
|
6
|
+
* API documentation for the Widgetic API Gateway
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CanvasActiveOperationStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfCanvasActiveOperation = instanceOfCanvasActiveOperation;
|
|
18
|
+
exports.CanvasActiveOperationFromJSON = CanvasActiveOperationFromJSON;
|
|
19
|
+
exports.CanvasActiveOperationFromJSONTyped = CanvasActiveOperationFromJSONTyped;
|
|
20
|
+
exports.CanvasActiveOperationToJSON = CanvasActiveOperationToJSON;
|
|
21
|
+
exports.CanvasActiveOperationToJSONTyped = CanvasActiveOperationToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.CanvasActiveOperationStatusEnum = {
|
|
26
|
+
Pending: 'pending',
|
|
27
|
+
Running: 'running'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the CanvasActiveOperation interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfCanvasActiveOperation(value) {
|
|
33
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('progress' in value) || value['progress'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('widgetId' in value) || value['widgetId'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
function CanvasActiveOperationFromJSON(json) {
|
|
46
|
+
return CanvasActiveOperationFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function CanvasActiveOperationFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'id': json['id'],
|
|
54
|
+
'type': json['type'],
|
|
55
|
+
'status': json['status'],
|
|
56
|
+
'progress': json['progress'],
|
|
57
|
+
'widgetId': json['widgetId'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function CanvasActiveOperationToJSON(json) {
|
|
61
|
+
return CanvasActiveOperationToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function CanvasActiveOperationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'id': value['id'],
|
|
69
|
+
'type': value['type'],
|
|
70
|
+
'status': value['status'],
|
|
71
|
+
'progress': value['progress'],
|
|
72
|
+
'widgetId': value['widgetId'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -89,6 +89,12 @@ export interface CreateWidget201ResponseData {
|
|
|
89
89
|
* @memberof CreateWidget201ResponseData
|
|
90
90
|
*/
|
|
91
91
|
jsPath?: string | null;
|
|
92
|
+
/**
|
|
93
|
+
* A small line drawing of the widget, as an SVG on a 32 x 32 canvas (a few flat shapes only, drawn in currentColor, no script, style, text, link or image). Show it as a mask, 32 pixels wide, in the middle of the standard grey tile, in the darker grey. Null until one is drawn.
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof CreateWidget201ResponseData
|
|
96
|
+
*/
|
|
97
|
+
thumbnailSvg?: string | null;
|
|
92
98
|
/**
|
|
93
99
|
* ID of the canvas associated with this widget.
|
|
94
100
|
* @type {string}
|
|
@@ -119,6 +125,18 @@ export interface CreateWidget201ResponseData {
|
|
|
119
125
|
* @memberof CreateWidget201ResponseData
|
|
120
126
|
*/
|
|
121
127
|
lastCommitSha?: string | null;
|
|
128
|
+
/**
|
|
129
|
+
* True when the widget was published at least once and the latest saved commit differs from the published commit. Never-published drafts are false.
|
|
130
|
+
* @type {boolean}
|
|
131
|
+
* @memberof CreateWidget201ResponseData
|
|
132
|
+
*/
|
|
133
|
+
hasUnpublishedChanges?: boolean;
|
|
134
|
+
/**
|
|
135
|
+
* ISO timestamp of the last publish, or null when the widget was never published.
|
|
136
|
+
* @type {Date}
|
|
137
|
+
* @memberof CreateWidget201ResponseData
|
|
138
|
+
*/
|
|
139
|
+
publishedAt?: Date | null;
|
|
122
140
|
/**
|
|
123
141
|
* Organization ID if created in an organization workspace.
|
|
124
142
|
* @type {string}
|
|
@@ -52,11 +52,14 @@ function CreateWidget201ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
52
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
53
53
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
54
54
|
'jsPath': json['jsPath'] == null ? undefined : json['jsPath'],
|
|
55
|
+
'thumbnailSvg': json['thumbnailSvg'] == null ? undefined : json['thumbnailSvg'],
|
|
55
56
|
'canvasId': json['canvasId'] == null ? undefined : json['canvasId'],
|
|
56
57
|
'repoId': json['repoId'] == null ? undefined : json['repoId'],
|
|
57
58
|
'databaseId': json['databaseId'] == null ? undefined : json['databaseId'],
|
|
58
59
|
'version': json['version'] == null ? undefined : json['version'],
|
|
59
60
|
'lastCommitSha': json['lastCommitSha'] == null ? undefined : json['lastCommitSha'],
|
|
61
|
+
'hasUnpublishedChanges': json['hasUnpublishedChanges'] == null ? undefined : json['hasUnpublishedChanges'],
|
|
62
|
+
'publishedAt': json['publishedAt'] == null ? undefined : (new Date(json['publishedAt'])),
|
|
60
63
|
'organizationId': json['organizationId'] == null ? undefined : json['organizationId'],
|
|
61
64
|
'projectFolder': json['projectFolder'] == null ? undefined : json['projectFolder'],
|
|
62
65
|
'workspaceType': json['workspaceType'] == null ? undefined : json['workspaceType'],
|
|
@@ -84,11 +87,14 @@ function CreateWidget201ResponseDataToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
84
87
|
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
85
88
|
'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
|
|
86
89
|
'jsPath': value['jsPath'],
|
|
90
|
+
'thumbnailSvg': value['thumbnailSvg'],
|
|
87
91
|
'canvasId': value['canvasId'],
|
|
88
92
|
'repoId': value['repoId'],
|
|
89
93
|
'databaseId': value['databaseId'],
|
|
90
94
|
'version': value['version'],
|
|
91
95
|
'lastCommitSha': value['lastCommitSha'],
|
|
96
|
+
'hasUnpublishedChanges': value['hasUnpublishedChanges'],
|
|
97
|
+
'publishedAt': value['publishedAt'] == null ? undefined : (value['publishedAt'].toISOString()),
|
|
92
98
|
'organizationId': value['organizationId'],
|
|
93
99
|
'projectFolder': value['projectFolder'],
|
|
94
100
|
'workspaceType': value['workspaceType'],
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Widgetic API Gateway
|
|
3
|
+
* API documentation for the Widgetic API Gateway
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { DeleteOrganizationDomainResponseData } from './DeleteOrganizationDomainResponseData';
|
|
13
|
+
import type { ResponseMeta } from './ResponseMeta';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface DeleteOrganizationDomainResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface DeleteOrganizationDomainResponse {
|
|
20
|
+
/**
|
|
21
|
+
* Always `true` on a success.
|
|
22
|
+
* @type {boolean}
|
|
23
|
+
* @memberof DeleteOrganizationDomainResponse
|
|
24
|
+
*/
|
|
25
|
+
success: boolean;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {DeleteOrganizationDomainResponseData}
|
|
29
|
+
* @memberof DeleteOrganizationDomainResponse
|
|
30
|
+
*/
|
|
31
|
+
data: DeleteOrganizationDomainResponseData;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {ResponseMeta}
|
|
35
|
+
* @memberof DeleteOrganizationDomainResponse
|
|
36
|
+
*/
|
|
37
|
+
meta?: ResponseMeta;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the DeleteOrganizationDomainResponse interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfDeleteOrganizationDomainResponse(value: object): value is DeleteOrganizationDomainResponse;
|
|
43
|
+
export declare function DeleteOrganizationDomainResponseFromJSON(json: any): DeleteOrganizationDomainResponse;
|
|
44
|
+
export declare function DeleteOrganizationDomainResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteOrganizationDomainResponse;
|
|
45
|
+
export declare function DeleteOrganizationDomainResponseToJSON(json: any): DeleteOrganizationDomainResponse;
|
|
46
|
+
export declare function DeleteOrganizationDomainResponseToJSONTyped(value?: DeleteOrganizationDomainResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Widgetic API Gateway
|
|
6
|
+
* API documentation for the Widgetic API Gateway
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfDeleteOrganizationDomainResponse = instanceOfDeleteOrganizationDomainResponse;
|
|
17
|
+
exports.DeleteOrganizationDomainResponseFromJSON = DeleteOrganizationDomainResponseFromJSON;
|
|
18
|
+
exports.DeleteOrganizationDomainResponseFromJSONTyped = DeleteOrganizationDomainResponseFromJSONTyped;
|
|
19
|
+
exports.DeleteOrganizationDomainResponseToJSON = DeleteOrganizationDomainResponseToJSON;
|
|
20
|
+
exports.DeleteOrganizationDomainResponseToJSONTyped = DeleteOrganizationDomainResponseToJSONTyped;
|
|
21
|
+
const DeleteOrganizationDomainResponseData_1 = require("./DeleteOrganizationDomainResponseData");
|
|
22
|
+
const ResponseMeta_1 = require("./ResponseMeta");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the DeleteOrganizationDomainResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfDeleteOrganizationDomainResponse(value) {
|
|
27
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function DeleteOrganizationDomainResponseFromJSON(json) {
|
|
34
|
+
return DeleteOrganizationDomainResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function DeleteOrganizationDomainResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'success': json['success'],
|
|
42
|
+
'data': (0, DeleteOrganizationDomainResponseData_1.DeleteOrganizationDomainResponseDataFromJSON)(json['data']),
|
|
43
|
+
'meta': json['meta'] == null ? undefined : (0, ResponseMeta_1.ResponseMetaFromJSON)(json['meta']),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function DeleteOrganizationDomainResponseToJSON(json) {
|
|
47
|
+
return DeleteOrganizationDomainResponseToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function DeleteOrganizationDomainResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'success': value['success'],
|
|
55
|
+
'data': (0, DeleteOrganizationDomainResponseData_1.DeleteOrganizationDomainResponseDataToJSON)(value['data']),
|
|
56
|
+
'meta': (0, ResponseMeta_1.ResponseMetaToJSON)(value['meta']),
|
|
57
|
+
};
|
|
58
|
+
}
|