@managespace/sdk 0.0.148 → 0.0.149

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.
@@ -23,18 +23,6 @@ export interface CreateDocument {
23
23
  * @memberof CreateDocument
24
24
  */
25
25
  templateId: string;
26
- /**
27
- * The ID of the workflow that created the document.
28
- * @type {string}
29
- * @memberof CreateDocument
30
- */
31
- workflowId?: string;
32
- /**
33
- * The ID of the workflow step that created the document.
34
- * @type {string}
35
- * @memberof CreateDocument
36
- */
37
- workflowStepId?: string;
38
26
  /**
39
27
  * The signers of the template
40
28
  * @type {Array<DocumentSigner>}
@@ -47,6 +35,12 @@ export interface CreateDocument {
47
35
  * @memberof CreateDocument
48
36
  */
49
37
  fields?: Array<DocumentField>;
38
+ /**
39
+ * Metadata for the document
40
+ * @type {object}
41
+ * @memberof CreateDocument
42
+ */
43
+ metadata: object;
50
44
  }
51
45
  /**
52
46
  * Check if a given object implements the CreateDocument interface.
@@ -1 +1 @@
1
- {"version":3,"file":"create-document.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-document.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAOxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAQtD;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IAChC;;;;OAIG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CACjC;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG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AAmB,GAAE,OAAe,GAAG,GAAG,CAYlH"}
@@ -22,6 +22,8 @@ const document_field_1 = require("./document-field");
22
22
  function instanceOfCreateDocument(value) {
23
23
  if (!('templateId' in value) || value['templateId'] === undefined)
24
24
  return false;
25
+ if (!('metadata' in value) || value['metadata'] === undefined)
26
+ return false;
25
27
  return true;
26
28
  }
27
29
  exports.instanceOfCreateDocument = instanceOfCreateDocument;
@@ -35,10 +37,9 @@ function CreateDocumentFromJSONTyped(json, ignoreDiscriminator) {
35
37
  }
36
38
  return {
37
39
  'templateId': json['templateId'],
38
- 'workflowId': json['workflowId'] == null ? undefined : json['workflowId'],
39
- 'workflowStepId': json['workflowStepId'] == null ? undefined : json['workflowStepId'],
40
40
  'signers': json['signers'] == null ? undefined : (json['signers'].map(document_signer_1.DocumentSignerFromJSON)),
41
41
  'fields': json['fields'] == null ? undefined : (json['fields'].map(document_field_1.DocumentFieldFromJSON)),
42
+ 'metadata': json['metadata'],
42
43
  };
43
44
  }
44
45
  exports.CreateDocumentFromJSONTyped = CreateDocumentFromJSONTyped;
@@ -52,10 +53,9 @@ function CreateDocumentToJSONTyped(value, ignoreDiscriminator = false) {
52
53
  }
53
54
  return {
54
55
  'templateId': value['templateId'],
55
- 'workflowId': value['workflowId'],
56
- 'workflowStepId': value['workflowStepId'],
57
56
  'signers': value['signers'] == null ? undefined : (value['signers'].map(document_signer_1.DocumentSignerToJSON)),
58
57
  'fields': value['fields'] == null ? undefined : (value['fields'].map(document_field_1.DocumentFieldToJSON)),
58
+ 'metadata': value['metadata'],
59
59
  };
60
60
  }
61
61
  exports.CreateDocumentToJSONTyped = CreateDocumentToJSONTyped;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managespace/sdk",
3
- "version": "0.0.148",
3
+ "version": "0.0.149",
4
4
  "scripts": {
5
5
  "dev": "tsc -w --preserveWatchOutput",
6
6
  "build": "tsc",
@@ -40,18 +40,6 @@ export interface CreateDocument {
40
40
  * @memberof CreateDocument
41
41
  */
42
42
  templateId: string;
43
- /**
44
- * The ID of the workflow that created the document.
45
- * @type {string}
46
- * @memberof CreateDocument
47
- */
48
- workflowId?: string;
49
- /**
50
- * The ID of the workflow step that created the document.
51
- * @type {string}
52
- * @memberof CreateDocument
53
- */
54
- workflowStepId?: string;
55
43
  /**
56
44
  * The signers of the template
57
45
  * @type {Array<DocumentSigner>}
@@ -64,6 +52,12 @@ export interface CreateDocument {
64
52
  * @memberof CreateDocument
65
53
  */
66
54
  fields?: Array<DocumentField>;
55
+ /**
56
+ * Metadata for the document
57
+ * @type {object}
58
+ * @memberof CreateDocument
59
+ */
60
+ metadata: object;
67
61
  }
68
62
 
69
63
  /**
@@ -71,6 +65,7 @@ export interface CreateDocument {
71
65
  */
72
66
  export function instanceOfCreateDocument(value: object): value is CreateDocument {
73
67
  if (!('templateId' in value) || value['templateId'] === undefined) return false;
68
+ if (!('metadata' in value) || value['metadata'] === undefined) return false;
74
69
  return true;
75
70
  }
76
71
 
@@ -85,10 +80,9 @@ export function CreateDocumentFromJSONTyped(json: any, ignoreDiscriminator: bool
85
80
  return {
86
81
 
87
82
  'templateId': json['templateId'],
88
- 'workflowId': json['workflowId'] == null ? undefined : json['workflowId'],
89
- 'workflowStepId': json['workflowStepId'] == null ? undefined : json['workflowStepId'],
90
83
  'signers': json['signers'] == null ? undefined : ((json['signers'] as Array<any>).map(DocumentSignerFromJSON)),
91
84
  'fields': json['fields'] == null ? undefined : ((json['fields'] as Array<any>).map(DocumentFieldFromJSON)),
85
+ 'metadata': json['metadata'],
92
86
  };
93
87
  }
94
88
 
@@ -104,10 +98,9 @@ export function CreateDocumentToJSONTyped(value?: CreateDocument | null, ignoreD
104
98
  return {
105
99
 
106
100
  'templateId': value['templateId'],
107
- 'workflowId': value['workflowId'],
108
- 'workflowStepId': value['workflowStepId'],
109
101
  'signers': value['signers'] == null ? undefined : ((value['signers'] as Array<any>).map(DocumentSignerToJSON)),
110
102
  'fields': value['fields'] == null ? undefined : ((value['fields'] as Array<any>).map(DocumentFieldToJSON)),
103
+ 'metadata': value['metadata'],
111
104
  };
112
105
  }
113
106