@managespace/sdk 0.1.171 → 0.1.174-documents

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/extensibility/functions/project/document.d.ts +2 -8
  2. package/dist/extensibility/functions/project/document.d.ts.map +1 -1
  3. package/dist/extensibility/functions/project/document.js +0 -5
  4. package/dist/extensions/host-bridge.d.ts +166 -0
  5. package/dist/extensions/host-bridge.d.ts.map +1 -0
  6. package/dist/extensions/host-bridge.js +259 -0
  7. package/dist/extensions/index.d.ts +40 -0
  8. package/dist/extensions/index.d.ts.map +1 -0
  9. package/dist/extensions/index.js +55 -0
  10. package/dist/extensions/types.d.ts +111 -0
  11. package/dist/extensions/types.d.ts.map +1 -0
  12. package/dist/extensions/types.js +2 -0
  13. package/dist/generated/apis/default-api.d.ts +13 -12
  14. package/dist/generated/apis/default-api.d.ts.map +1 -1
  15. package/dist/generated/apis/default-api.js +35 -30
  16. package/dist/generated/apis/extensions-api.d.ts +98 -0
  17. package/dist/generated/apis/extensions-api.d.ts.map +1 -0
  18. package/dist/generated/apis/extensions-api.js +295 -0
  19. package/dist/generated/models/document-complete.d.ts +7 -13
  20. package/dist/generated/models/document-complete.d.ts.map +1 -1
  21. package/dist/generated/models/document-complete.js +5 -5
  22. package/dist/generated/models/extension-org.d.ts +64 -0
  23. package/dist/generated/models/extension-org.d.ts.map +1 -0
  24. package/dist/generated/models/extension-org.js +70 -0
  25. package/dist/generated/models/extension.d.ts +106 -0
  26. package/dist/generated/models/extension.d.ts.map +1 -0
  27. package/dist/generated/models/extension.js +98 -0
  28. package/dist/generated/models/index.d.ts +1 -4
  29. package/dist/generated/models/index.d.ts.map +1 -1
  30. package/dist/generated/models/index.js +1 -4
  31. package/dist/generated/models/update-document-type.d.ts +43 -0
  32. package/dist/generated/models/update-document-type.d.ts.map +1 -0
  33. package/dist/generated/models/update-document-type.js +61 -0
  34. package/package.deploy.json +8 -4
  35. package/package.json +24 -12
  36. package/src/extensibility/functions/project/document.ts +1 -8
  37. package/src/generated/.openapi-generator/FILES +1 -4
  38. package/src/generated/apis/default-api.ts +60 -52
  39. package/src/generated/models/document-complete.ts +11 -18
  40. package/src/generated/models/index.ts +1 -4
  41. package/src/generated/models/update-document-type.ts +80 -0
  42. package/dist/generated/models/document-created.d.ts +0 -54
  43. package/dist/generated/models/document-created.d.ts.map +0 -1
  44. package/dist/generated/models/document-created.js +0 -59
  45. package/dist/generated/models/document-status-signer.d.ts +0 -57
  46. package/dist/generated/models/document-status-signer.d.ts.map +0 -1
  47. package/dist/generated/models/document-status-signer.js +0 -65
  48. package/dist/generated/models/document-status.d.ts +0 -52
  49. package/dist/generated/models/document-status.d.ts.map +0 -1
  50. package/dist/generated/models/document-status.js +0 -64
  51. package/dist/generated/models/embed-config.d.ts +0 -53
  52. package/dist/generated/models/embed-config.d.ts.map +0 -1
  53. package/dist/generated/models/embed-config.js +0 -61
  54. package/src/generated/models/document-created.ts +0 -99
  55. package/src/generated/models/document-status-signer.ts +0 -102
  56. package/src/generated/models/document-status.ts +0 -102
  57. package/src/generated/models/embed-config.ts +0 -93
@@ -1,64 +0,0 @@
1
- "use strict";
2
- // @ts-nocheck
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- /**
6
- * ManageSpace API
7
- * ManageSpace API Documentation
8
- *
9
- * The version of the OpenAPI document: 1.0.0
10
- *
11
- *
12
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13
- * https://openapi-generator.tech
14
- * Do not edit the class manually.
15
- */
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.instanceOfDocumentStatus = instanceOfDocumentStatus;
18
- exports.DocumentStatusFromJSON = DocumentStatusFromJSON;
19
- exports.DocumentStatusFromJSONTyped = DocumentStatusFromJSONTyped;
20
- exports.DocumentStatusToJSON = DocumentStatusToJSON;
21
- exports.DocumentStatusToJSONTyped = DocumentStatusToJSONTyped;
22
- const document_status_signer_1 = require("./document-status-signer");
23
- /**
24
- * Check if a given object implements the DocumentStatus interface.
25
- */
26
- function instanceOfDocumentStatus(value) {
27
- if (!('documentId' in value) || value['documentId'] === undefined)
28
- return false;
29
- if (!('status' in value) || value['status'] === undefined)
30
- return false;
31
- if (!('allSignaturesGathered' in value) || value['allSignaturesGathered'] === undefined)
32
- return false;
33
- if (!('signers' in value) || value['signers'] === undefined)
34
- return false;
35
- return true;
36
- }
37
- function DocumentStatusFromJSON(json) {
38
- return DocumentStatusFromJSONTyped(json, false);
39
- }
40
- function DocumentStatusFromJSONTyped(json, ignoreDiscriminator) {
41
- if (json == null) {
42
- return json;
43
- }
44
- return {
45
- 'documentId': json['documentId'],
46
- 'status': json['status'],
47
- 'allSignaturesGathered': json['allSignaturesGathered'],
48
- 'signers': (json['signers'].map(document_status_signer_1.DocumentStatusSignerFromJSON)),
49
- };
50
- }
51
- function DocumentStatusToJSON(json) {
52
- return DocumentStatusToJSONTyped(json, false);
53
- }
54
- function DocumentStatusToJSONTyped(value, ignoreDiscriminator = false) {
55
- if (value == null) {
56
- return value;
57
- }
58
- return {
59
- 'documentId': value['documentId'],
60
- 'status': value['status'],
61
- 'allSignaturesGathered': value['allSignaturesGathered'],
62
- 'signers': (value['signers'].map(document_status_signer_1.DocumentStatusSignerToJSON)),
63
- };
64
- }
@@ -1,53 +0,0 @@
1
- /**
2
- * ManageSpace API
3
- * ManageSpace API Documentation
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
- *
14
- * @export
15
- * @interface EmbedConfig
16
- */
17
- export interface EmbedConfig {
18
- /**
19
- * URL of the provider script to load.
20
- * @type {string}
21
- * @memberof EmbedConfig
22
- */
23
- scriptUrl: string;
24
- /**
25
- * Custom element tag name to render.
26
- * @type {string}
27
- * @memberof EmbedConfig
28
- */
29
- tagName: string;
30
- /**
31
- * Attributes to set on the custom element.
32
- * @type {{ [key: string]: string; }}
33
- * @memberof EmbedConfig
34
- */
35
- attributes: {
36
- [key: string]: string;
37
- };
38
- /**
39
- * DOM event name fired on completion.
40
- * @type {string}
41
- * @memberof EmbedConfig
42
- */
43
- completionEvent?: string;
44
- }
45
- /**
46
- * Check if a given object implements the EmbedConfig interface.
47
- */
48
- export declare function instanceOfEmbedConfig(value: object): value is EmbedConfig;
49
- export declare function EmbedConfigFromJSON(json: any): EmbedConfig;
50
- export declare function EmbedConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmbedConfig;
51
- export declare function EmbedConfigToJSON(json: any): EmbedConfig;
52
- export declare function EmbedConfigToJSONTyped(value?: EmbedConfig | null, ignoreDiscriminator?: boolean): any;
53
- //# sourceMappingURL=embed-config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"embed-config.d.ts","sourceRoot":"","sources":["../../../src/generated/models/embed-config.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KAAE,CAAC;IACvC;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,WAAW,CAKzE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAE1D;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,WAAW,CAW7F;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAExD;AAED,wBAAgB,sBAAsB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAY5G"}
@@ -1,61 +0,0 @@
1
- "use strict";
2
- // @ts-nocheck
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- /**
6
- * ManageSpace API
7
- * ManageSpace API Documentation
8
- *
9
- * The version of the OpenAPI document: 1.0.0
10
- *
11
- *
12
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13
- * https://openapi-generator.tech
14
- * Do not edit the class manually.
15
- */
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.instanceOfEmbedConfig = instanceOfEmbedConfig;
18
- exports.EmbedConfigFromJSON = EmbedConfigFromJSON;
19
- exports.EmbedConfigFromJSONTyped = EmbedConfigFromJSONTyped;
20
- exports.EmbedConfigToJSON = EmbedConfigToJSON;
21
- exports.EmbedConfigToJSONTyped = EmbedConfigToJSONTyped;
22
- /**
23
- * Check if a given object implements the EmbedConfig interface.
24
- */
25
- function instanceOfEmbedConfig(value) {
26
- if (!('scriptUrl' in value) || value['scriptUrl'] === undefined)
27
- return false;
28
- if (!('tagName' in value) || value['tagName'] === undefined)
29
- return false;
30
- if (!('attributes' in value) || value['attributes'] === undefined)
31
- return false;
32
- return true;
33
- }
34
- function EmbedConfigFromJSON(json) {
35
- return EmbedConfigFromJSONTyped(json, false);
36
- }
37
- function EmbedConfigFromJSONTyped(json, ignoreDiscriminator) {
38
- if (json == null) {
39
- return json;
40
- }
41
- return {
42
- 'scriptUrl': json['scriptUrl'],
43
- 'tagName': json['tagName'],
44
- 'attributes': json['attributes'],
45
- 'completionEvent': json['completionEvent'] == null ? undefined : json['completionEvent'],
46
- };
47
- }
48
- function EmbedConfigToJSON(json) {
49
- return EmbedConfigToJSONTyped(json, false);
50
- }
51
- function EmbedConfigToJSONTyped(value, ignoreDiscriminator = false) {
52
- if (value == null) {
53
- return value;
54
- }
55
- return {
56
- 'scriptUrl': value['scriptUrl'],
57
- 'tagName': value['tagName'],
58
- 'attributes': value['attributes'],
59
- 'completionEvent': value['completionEvent'],
60
- };
61
- }
@@ -1,99 +0,0 @@
1
- // @ts-nocheck
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * ManageSpace API
6
- * ManageSpace API Documentation
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
-
16
- import { mapValues } from '../runtime';
17
- import type { EmbedConfig } from './embed-config';
18
- import {
19
- EmbedConfigFromJSON,
20
- EmbedConfigFromJSONTyped,
21
- EmbedConfigToJSON,
22
- EmbedConfigToJSONTyped,
23
- } from './embed-config';
24
-
25
- /**
26
- *
27
- * @export
28
- * @interface DocumentCreated
29
- */
30
- export interface DocumentCreated {
31
- /**
32
- * The success status of the operation.
33
- * @type {boolean}
34
- * @memberof DocumentCreated
35
- */
36
- success: boolean;
37
- /**
38
- * Provider-agnostic embed configuration for rendering the signing UI.
39
- * @type {EmbedConfig}
40
- * @memberof DocumentCreated
41
- */
42
- embedConfig?: EmbedConfig;
43
- /**
44
- * Per-signer embed configurations keyed by role (e.g. operator, tenant).
45
- * @type {{ [key: string]: EmbedConfig; }}
46
- * @memberof DocumentCreated
47
- */
48
- signerEmbedConfigs?: { [key: string]: EmbedConfig; };
49
- /**
50
- * External document identifier from the signing provider.
51
- * @type {string}
52
- * @memberof DocumentCreated
53
- */
54
- documentId?: string;
55
- }
56
-
57
- /**
58
- * Check if a given object implements the DocumentCreated interface.
59
- */
60
- export function instanceOfDocumentCreated(value: object): value is DocumentCreated {
61
- if (!('success' in value) || value['success'] === undefined) return false;
62
- return true;
63
- }
64
-
65
- export function DocumentCreatedFromJSON(json: any): DocumentCreated {
66
- return DocumentCreatedFromJSONTyped(json, false);
67
- }
68
-
69
- export function DocumentCreatedFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentCreated {
70
- if (json == null) {
71
- return json;
72
- }
73
- return {
74
-
75
- 'success': json['success'],
76
- 'embedConfig': json['embedConfig'] == null ? undefined : EmbedConfigFromJSON(json['embedConfig']),
77
- 'signerEmbedConfigs': json['signerEmbedConfigs'] == null ? undefined : (mapValues(json['signerEmbedConfigs'], EmbedConfigFromJSON)),
78
- 'documentId': json['documentId'] == null ? undefined : json['documentId'],
79
- };
80
- }
81
-
82
- export function DocumentCreatedToJSON(json: any): DocumentCreated {
83
- return DocumentCreatedToJSONTyped(json, false);
84
- }
85
-
86
- export function DocumentCreatedToJSONTyped(value?: DocumentCreated | null, ignoreDiscriminator: boolean = false): any {
87
- if (value == null) {
88
- return value;
89
- }
90
-
91
- return {
92
-
93
- 'success': value['success'],
94
- 'embedConfig': EmbedConfigToJSON(value['embedConfig']),
95
- 'signerEmbedConfigs': value['signerEmbedConfigs'] == null ? undefined : (mapValues(value['signerEmbedConfigs'], EmbedConfigToJSON)),
96
- 'documentId': value['documentId'],
97
- };
98
- }
99
-
@@ -1,102 +0,0 @@
1
- // @ts-nocheck
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * ManageSpace API
6
- * ManageSpace API Documentation
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
-
16
- import { mapValues } from '../runtime';
17
- /**
18
- *
19
- * @export
20
- * @interface DocumentStatusSigner
21
- */
22
- export interface DocumentStatusSigner {
23
- /**
24
- * Name of the signer.
25
- * @type {string}
26
- * @memberof DocumentStatusSigner
27
- */
28
- name: string;
29
- /**
30
- * Email address of the signer.
31
- * @type {string}
32
- * @memberof DocumentStatusSigner
33
- */
34
- email: string;
35
- /**
36
- * Role of the signer.
37
- * @type {string}
38
- * @memberof DocumentStatusSigner
39
- */
40
- role: string;
41
- /**
42
- * Signing status (e.g. pending, completed).
43
- * @type {string}
44
- * @memberof DocumentStatusSigner
45
- */
46
- status: string;
47
- /**
48
- * Timestamp when the signer completed signing.
49
- * @type {string}
50
- * @memberof DocumentStatusSigner
51
- */
52
- completedAt?: string;
53
- }
54
-
55
- /**
56
- * Check if a given object implements the DocumentStatusSigner interface.
57
- */
58
- export function instanceOfDocumentStatusSigner(value: object): value is DocumentStatusSigner {
59
- if (!('name' in value) || value['name'] === undefined) return false;
60
- if (!('email' in value) || value['email'] === undefined) return false;
61
- if (!('role' in value) || value['role'] === undefined) return false;
62
- if (!('status' in value) || value['status'] === undefined) return false;
63
- return true;
64
- }
65
-
66
- export function DocumentStatusSignerFromJSON(json: any): DocumentStatusSigner {
67
- return DocumentStatusSignerFromJSONTyped(json, false);
68
- }
69
-
70
- export function DocumentStatusSignerFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentStatusSigner {
71
- if (json == null) {
72
- return json;
73
- }
74
- return {
75
-
76
- 'name': json['name'],
77
- 'email': json['email'],
78
- 'role': json['role'],
79
- 'status': json['status'],
80
- 'completedAt': json['completedAt'] == null ? undefined : json['completedAt'],
81
- };
82
- }
83
-
84
- export function DocumentStatusSignerToJSON(json: any): DocumentStatusSigner {
85
- return DocumentStatusSignerToJSONTyped(json, false);
86
- }
87
-
88
- export function DocumentStatusSignerToJSONTyped(value?: DocumentStatusSigner | null, ignoreDiscriminator: boolean = false): any {
89
- if (value == null) {
90
- return value;
91
- }
92
-
93
- return {
94
-
95
- 'name': value['name'],
96
- 'email': value['email'],
97
- 'role': value['role'],
98
- 'status': value['status'],
99
- 'completedAt': value['completedAt'],
100
- };
101
- }
102
-
@@ -1,102 +0,0 @@
1
- // @ts-nocheck
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * ManageSpace API
6
- * ManageSpace API Documentation
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
-
16
- import { mapValues } from '../runtime';
17
- import type { DocumentStatusSigner } from './document-status-signer';
18
- import {
19
- DocumentStatusSignerFromJSON,
20
- DocumentStatusSignerFromJSONTyped,
21
- DocumentStatusSignerToJSON,
22
- DocumentStatusSignerToJSONTyped,
23
- } from './document-status-signer';
24
-
25
- /**
26
- *
27
- * @export
28
- * @interface DocumentStatus
29
- */
30
- export interface DocumentStatus {
31
- /**
32
- * External document identifier from the signing provider.
33
- * @type {string}
34
- * @memberof DocumentStatus
35
- */
36
- documentId: string;
37
- /**
38
- * Overall document status (e.g. pending, completed).
39
- * @type {string}
40
- * @memberof DocumentStatus
41
- */
42
- status: string;
43
- /**
44
- * Whether all required signatures have been gathered.
45
- * @type {boolean}
46
- * @memberof DocumentStatus
47
- */
48
- allSignaturesGathered: boolean;
49
- /**
50
- * Status of each individual signer.
51
- * @type {Array<DocumentStatusSigner>}
52
- * @memberof DocumentStatus
53
- */
54
- signers: Array<DocumentStatusSigner>;
55
- }
56
-
57
- /**
58
- * Check if a given object implements the DocumentStatus interface.
59
- */
60
- export function instanceOfDocumentStatus(value: object): value is DocumentStatus {
61
- if (!('documentId' in value) || value['documentId'] === undefined) return false;
62
- if (!('status' in value) || value['status'] === undefined) return false;
63
- if (!('allSignaturesGathered' in value) || value['allSignaturesGathered'] === undefined) return false;
64
- if (!('signers' in value) || value['signers'] === undefined) return false;
65
- return true;
66
- }
67
-
68
- export function DocumentStatusFromJSON(json: any): DocumentStatus {
69
- return DocumentStatusFromJSONTyped(json, false);
70
- }
71
-
72
- export function DocumentStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentStatus {
73
- if (json == null) {
74
- return json;
75
- }
76
- return {
77
-
78
- 'documentId': json['documentId'],
79
- 'status': json['status'],
80
- 'allSignaturesGathered': json['allSignaturesGathered'],
81
- 'signers': ((json['signers'] as Array<any>).map(DocumentStatusSignerFromJSON)),
82
- };
83
- }
84
-
85
- export function DocumentStatusToJSON(json: any): DocumentStatus {
86
- return DocumentStatusToJSONTyped(json, false);
87
- }
88
-
89
- export function DocumentStatusToJSONTyped(value?: DocumentStatus | null, ignoreDiscriminator: boolean = false): any {
90
- if (value == null) {
91
- return value;
92
- }
93
-
94
- return {
95
-
96
- 'documentId': value['documentId'],
97
- 'status': value['status'],
98
- 'allSignaturesGathered': value['allSignaturesGathered'],
99
- 'signers': ((value['signers'] as Array<any>).map(DocumentStatusSignerToJSON)),
100
- };
101
- }
102
-
@@ -1,93 +0,0 @@
1
- // @ts-nocheck
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * ManageSpace API
6
- * ManageSpace API Documentation
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
-
16
- import { mapValues } from '../runtime';
17
- /**
18
- *
19
- * @export
20
- * @interface EmbedConfig
21
- */
22
- export interface EmbedConfig {
23
- /**
24
- * URL of the provider script to load.
25
- * @type {string}
26
- * @memberof EmbedConfig
27
- */
28
- scriptUrl: string;
29
- /**
30
- * Custom element tag name to render.
31
- * @type {string}
32
- * @memberof EmbedConfig
33
- */
34
- tagName: string;
35
- /**
36
- * Attributes to set on the custom element.
37
- * @type {{ [key: string]: string; }}
38
- * @memberof EmbedConfig
39
- */
40
- attributes: { [key: string]: string; };
41
- /**
42
- * DOM event name fired on completion.
43
- * @type {string}
44
- * @memberof EmbedConfig
45
- */
46
- completionEvent?: string;
47
- }
48
-
49
- /**
50
- * Check if a given object implements the EmbedConfig interface.
51
- */
52
- export function instanceOfEmbedConfig(value: object): value is EmbedConfig {
53
- if (!('scriptUrl' in value) || value['scriptUrl'] === undefined) return false;
54
- if (!('tagName' in value) || value['tagName'] === undefined) return false;
55
- if (!('attributes' in value) || value['attributes'] === undefined) return false;
56
- return true;
57
- }
58
-
59
- export function EmbedConfigFromJSON(json: any): EmbedConfig {
60
- return EmbedConfigFromJSONTyped(json, false);
61
- }
62
-
63
- export function EmbedConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmbedConfig {
64
- if (json == null) {
65
- return json;
66
- }
67
- return {
68
-
69
- 'scriptUrl': json['scriptUrl'],
70
- 'tagName': json['tagName'],
71
- 'attributes': json['attributes'],
72
- 'completionEvent': json['completionEvent'] == null ? undefined : json['completionEvent'],
73
- };
74
- }
75
-
76
- export function EmbedConfigToJSON(json: any): EmbedConfig {
77
- return EmbedConfigToJSONTyped(json, false);
78
- }
79
-
80
- export function EmbedConfigToJSONTyped(value?: EmbedConfig | null, ignoreDiscriminator: boolean = false): any {
81
- if (value == null) {
82
- return value;
83
- }
84
-
85
- return {
86
-
87
- 'scriptUrl': value['scriptUrl'],
88
- 'tagName': value['tagName'],
89
- 'attributes': value['attributes'],
90
- 'completionEvent': value['completionEvent'],
91
- };
92
- }
93
-