@managespace/sdk 0.0.134 → 0.0.135

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 (69) hide show
  1. package/.turbo/turbo-build.log +2 -0
  2. package/dist/extensibility/functions/project/billing.d.ts +7 -0
  3. package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
  4. package/dist/extensibility/functions/project/billing.js +5 -0
  5. package/dist/extensibility/functions/project/document.d.ts +1 -14
  6. package/dist/extensibility/functions/project/document.d.ts.map +1 -1
  7. package/dist/extensibility/functions/project/document.js +0 -10
  8. package/dist/generated/apis/default-api.d.ts +11 -51
  9. package/dist/generated/apis/default-api.d.ts.map +1 -1
  10. package/dist/generated/apis/default-api.js +33 -163
  11. package/dist/generated/models/create-subscription-plan.d.ts +69 -0
  12. package/dist/generated/models/create-subscription-plan.d.ts.map +1 -0
  13. package/dist/generated/models/create-subscription-plan.js +71 -0
  14. package/dist/generated/models/document-signed.d.ts +0 -6
  15. package/dist/generated/models/document-signed.d.ts.map +1 -1
  16. package/dist/generated/models/document-signed.js +0 -4
  17. package/dist/generated/models/index.d.ts +0 -5
  18. package/dist/generated/models/index.d.ts.map +1 -1
  19. package/dist/generated/models/index.js +0 -5
  20. package/dist/generated/models/subscription-invoice-line.d.ts +117 -0
  21. package/dist/generated/models/subscription-invoice-line.d.ts.map +1 -0
  22. package/dist/generated/models/subscription-invoice-line.js +107 -0
  23. package/dist/generated/models/subscription-invoice.d.ts +58 -0
  24. package/dist/generated/models/subscription-invoice.d.ts.map +1 -0
  25. package/dist/generated/models/subscription-invoice.js +68 -0
  26. package/dist/generated/models/subscription-plan.d.ts +268 -0
  27. package/dist/generated/models/subscription-plan.d.ts.map +1 -0
  28. package/dist/generated/models/subscription-plan.js +208 -0
  29. package/dist/generated/models/subscription-preview.d.ts +275 -0
  30. package/dist/generated/models/subscription-preview.d.ts.map +1 -0
  31. package/dist/generated/models/subscription-preview.js +211 -0
  32. package/dist/generated/models/update-subscription-charge.d.ts +293 -0
  33. package/dist/generated/models/update-subscription-charge.d.ts.map +1 -0
  34. package/dist/generated/models/update-subscription-charge.js +149 -0
  35. package/dist/generated/models/update-subscription.d.ts +226 -0
  36. package/dist/generated/models/update-subscription.d.ts.map +1 -0
  37. package/dist/generated/models/update-subscription.js +118 -0
  38. package/package.json +2 -2
  39. package/src/extensibility/functions/project/billing.ts +7 -0
  40. package/src/extensibility/functions/project/document.ts +0 -9
  41. package/src/generated/.openapi-generator/FILES +0 -5
  42. package/src/generated/apis/default-api.ts +52 -262
  43. package/src/generated/models/document-signed.ts +0 -9
  44. package/src/generated/models/index.ts +0 -5
  45. package/dist/generated/models/document-url.d.ts +0 -39
  46. package/dist/generated/models/document-url.d.ts.map +0 -1
  47. package/dist/generated/models/document-url.js +0 -55
  48. package/dist/generated/models/document.d.ts +0 -39
  49. package/dist/generated/models/document.d.ts.map +0 -1
  50. package/dist/generated/models/document.js +0 -55
  51. package/dist/generated/models/get-documents200-response.d.ts +0 -41
  52. package/dist/generated/models/get-documents200-response.d.ts.map +0 -1
  53. package/dist/generated/models/get-documents200-response.js +0 -55
  54. package/dist/generated/models/upload-document.d.ts +0 -45
  55. package/dist/generated/models/upload-document.d.ts.map +0 -1
  56. package/dist/generated/models/upload-document.js +0 -55
  57. package/dist/generated/models/uploaded-document.d.ts +0 -33
  58. package/dist/generated/models/uploaded-document.d.ts.map +0 -1
  59. package/dist/generated/models/uploaded-document.js +0 -51
  60. package/dist/generated/models/uploaded-documents.d.ts +0 -45
  61. package/dist/generated/models/uploaded-documents.d.ts.map +0 -1
  62. package/dist/generated/models/uploaded-documents.js +0 -59
  63. package/package.deploy.json +0 -33
  64. package/src/generated/models/document-url.ts +0 -75
  65. package/src/generated/models/document.ts +0 -75
  66. package/src/generated/models/get-documents200-response.ts +0 -89
  67. package/src/generated/models/upload-document.ts +0 -82
  68. package/src/generated/models/uploaded-document.ts +0 -66
  69. package/src/generated/models/uploaded-documents.ts +0 -84
@@ -1,41 +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
- import type { PageMeta } from './page-meta';
13
- import type { DocumentUrl } from './document-url';
14
- /**
15
- *
16
- * @export
17
- * @interface GetDocuments200Response
18
- */
19
- export interface GetDocuments200Response {
20
- /**
21
- * The pagination metadata
22
- * @type {PageMeta}
23
- * @memberof GetDocuments200Response
24
- */
25
- pageMeta: PageMeta;
26
- /**
27
- *
28
- * @type {Array<DocumentUrl>}
29
- * @memberof GetDocuments200Response
30
- */
31
- results?: Array<DocumentUrl>;
32
- }
33
- /**
34
- * Check if a given object implements the GetDocuments200Response interface.
35
- */
36
- export declare function instanceOfGetDocuments200Response(value: object): value is GetDocuments200Response;
37
- export declare function GetDocuments200ResponseFromJSON(json: any): GetDocuments200Response;
38
- export declare function GetDocuments200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetDocuments200Response;
39
- export declare function GetDocuments200ResponseToJSON(json: any): GetDocuments200Response;
40
- export declare function GetDocuments200ResponseToJSONTyped(value?: GetDocuments200Response | null, ignoreDiscriminator?: boolean): any;
41
- //# sourceMappingURL=get-documents200-response.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-documents200-response.d.ts","sourceRoot":"","sources":["../../../src/generated/models/get-documents200-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAO5C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAQlD;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACpC;;;;OAIG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;CAChC;AAED;;GAEG;AACH,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,uBAAuB,CAGjG;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB,CAElF;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,uBAAuB,CASrH;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB,CAEhF;AAED,wBAAgB,kCAAkC,CAAC,KAAK,CAAC,EAAE,uBAAuB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUpI"}
@@ -1,55 +0,0 @@
1
- "use strict";
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
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.GetDocuments200ResponseToJSONTyped = exports.GetDocuments200ResponseToJSON = exports.GetDocuments200ResponseFromJSONTyped = exports.GetDocuments200ResponseFromJSON = exports.instanceOfGetDocuments200Response = void 0;
17
- const page_meta_1 = require("./page-meta");
18
- const document_url_1 = require("./document-url");
19
- /**
20
- * Check if a given object implements the GetDocuments200Response interface.
21
- */
22
- function instanceOfGetDocuments200Response(value) {
23
- if (!('pageMeta' in value) || value['pageMeta'] === undefined)
24
- return false;
25
- return true;
26
- }
27
- exports.instanceOfGetDocuments200Response = instanceOfGetDocuments200Response;
28
- function GetDocuments200ResponseFromJSON(json) {
29
- return GetDocuments200ResponseFromJSONTyped(json, false);
30
- }
31
- exports.GetDocuments200ResponseFromJSON = GetDocuments200ResponseFromJSON;
32
- function GetDocuments200ResponseFromJSONTyped(json, ignoreDiscriminator) {
33
- if (json == null) {
34
- return json;
35
- }
36
- return {
37
- 'pageMeta': (0, page_meta_1.PageMetaFromJSON)(json['pageMeta']),
38
- 'results': json['results'] == null ? undefined : (json['results'].map(document_url_1.DocumentUrlFromJSON)),
39
- };
40
- }
41
- exports.GetDocuments200ResponseFromJSONTyped = GetDocuments200ResponseFromJSONTyped;
42
- function GetDocuments200ResponseToJSON(json) {
43
- return GetDocuments200ResponseToJSONTyped(json, false);
44
- }
45
- exports.GetDocuments200ResponseToJSON = GetDocuments200ResponseToJSON;
46
- function GetDocuments200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
47
- if (value == null) {
48
- return value;
49
- }
50
- return {
51
- 'pageMeta': (0, page_meta_1.PageMetaToJSON)(value['pageMeta']),
52
- 'results': value['results'] == null ? undefined : (value['results'].map(document_url_1.DocumentUrlToJSON)),
53
- };
54
- }
55
- exports.GetDocuments200ResponseToJSONTyped = GetDocuments200ResponseToJSONTyped;
@@ -1,45 +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 UploadDocument
16
- */
17
- export interface UploadDocument {
18
- /**
19
- * Base64 encoded document
20
- * @type {string}
21
- * @memberof UploadDocument
22
- */
23
- file: string;
24
- /**
25
- * The Site Id
26
- * @type {string}
27
- * @memberof UploadDocument
28
- */
29
- siteId?: string;
30
- /**
31
- * The name or id of the document
32
- * @type {string}
33
- * @memberof UploadDocument
34
- */
35
- name?: string;
36
- }
37
- /**
38
- * Check if a given object implements the UploadDocument interface.
39
- */
40
- export declare function instanceOfUploadDocument(value: object): value is UploadDocument;
41
- export declare function UploadDocumentFromJSON(json: any): UploadDocument;
42
- export declare function UploadDocumentFromJSONTyped(json: any, ignoreDiscriminator: boolean): UploadDocument;
43
- export declare function UploadDocumentToJSON(json: any): UploadDocument;
44
- export declare function UploadDocumentToJSONTyped(value?: UploadDocument | null, ignoreDiscriminator?: boolean): any;
45
- //# sourceMappingURL=upload-document.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"upload-document.d.ts","sourceRoot":"","sources":["../../../src/generated/models/upload-document.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAG/E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CAUnG;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAE9D;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWlH"}
@@ -1,55 +0,0 @@
1
- "use strict";
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
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.UploadDocumentToJSONTyped = exports.UploadDocumentToJSON = exports.UploadDocumentFromJSONTyped = exports.UploadDocumentFromJSON = exports.instanceOfUploadDocument = void 0;
17
- /**
18
- * Check if a given object implements the UploadDocument interface.
19
- */
20
- function instanceOfUploadDocument(value) {
21
- if (!('file' in value) || value['file'] === undefined)
22
- return false;
23
- return true;
24
- }
25
- exports.instanceOfUploadDocument = instanceOfUploadDocument;
26
- function UploadDocumentFromJSON(json) {
27
- return UploadDocumentFromJSONTyped(json, false);
28
- }
29
- exports.UploadDocumentFromJSON = UploadDocumentFromJSON;
30
- function UploadDocumentFromJSONTyped(json, ignoreDiscriminator) {
31
- if (json == null) {
32
- return json;
33
- }
34
- return {
35
- 'file': json['file'],
36
- 'siteId': json['siteId'] == null ? undefined : json['siteId'],
37
- 'name': json['name'] == null ? undefined : json['name'],
38
- };
39
- }
40
- exports.UploadDocumentFromJSONTyped = UploadDocumentFromJSONTyped;
41
- function UploadDocumentToJSON(json) {
42
- return UploadDocumentToJSONTyped(json, false);
43
- }
44
- exports.UploadDocumentToJSON = UploadDocumentToJSON;
45
- function UploadDocumentToJSONTyped(value, ignoreDiscriminator = false) {
46
- if (value == null) {
47
- return value;
48
- }
49
- return {
50
- 'file': value['file'],
51
- 'siteId': value['siteId'],
52
- 'name': value['name'],
53
- };
54
- }
55
- exports.UploadDocumentToJSONTyped = UploadDocumentToJSONTyped;
@@ -1,33 +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 UploadedDocument
16
- */
17
- export interface UploadedDocument {
18
- /**
19
- * Base64 encoded document
20
- * @type {string}
21
- * @memberof UploadedDocument
22
- */
23
- file: string;
24
- }
25
- /**
26
- * Check if a given object implements the UploadedDocument interface.
27
- */
28
- export declare function instanceOfUploadedDocument(value: object): value is UploadedDocument;
29
- export declare function UploadedDocumentFromJSON(json: any): UploadedDocument;
30
- export declare function UploadedDocumentFromJSONTyped(json: any, ignoreDiscriminator: boolean): UploadedDocument;
31
- export declare function UploadedDocumentToJSON(json: any): UploadedDocument;
32
- export declare function UploadedDocumentToJSONTyped(value?: UploadedDocument | null, ignoreDiscriminator?: boolean): any;
33
- //# sourceMappingURL=uploaded-document.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"uploaded-document.d.ts","sourceRoot":"","sources":["../../../src/generated/models/uploaded-document.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gBAAgB,CAGnF;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAEpE;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gBAAgB,CAQvG;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAElE;AAED,wBAAgB,2BAA2B,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAStH"}
@@ -1,51 +0,0 @@
1
- "use strict";
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
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.UploadedDocumentToJSONTyped = exports.UploadedDocumentToJSON = exports.UploadedDocumentFromJSONTyped = exports.UploadedDocumentFromJSON = exports.instanceOfUploadedDocument = void 0;
17
- /**
18
- * Check if a given object implements the UploadedDocument interface.
19
- */
20
- function instanceOfUploadedDocument(value) {
21
- if (!('file' in value) || value['file'] === undefined)
22
- return false;
23
- return true;
24
- }
25
- exports.instanceOfUploadedDocument = instanceOfUploadedDocument;
26
- function UploadedDocumentFromJSON(json) {
27
- return UploadedDocumentFromJSONTyped(json, false);
28
- }
29
- exports.UploadedDocumentFromJSON = UploadedDocumentFromJSON;
30
- function UploadedDocumentFromJSONTyped(json, ignoreDiscriminator) {
31
- if (json == null) {
32
- return json;
33
- }
34
- return {
35
- 'file': json['file'],
36
- };
37
- }
38
- exports.UploadedDocumentFromJSONTyped = UploadedDocumentFromJSONTyped;
39
- function UploadedDocumentToJSON(json) {
40
- return UploadedDocumentToJSONTyped(json, false);
41
- }
42
- exports.UploadedDocumentToJSON = UploadedDocumentToJSON;
43
- function UploadedDocumentToJSONTyped(value, ignoreDiscriminator = false) {
44
- if (value == null) {
45
- return value;
46
- }
47
- return {
48
- 'file': value['file'],
49
- };
50
- }
51
- exports.UploadedDocumentToJSONTyped = UploadedDocumentToJSONTyped;
@@ -1,45 +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 UploadedDocuments
16
- */
17
- export interface UploadedDocuments {
18
- /**
19
- * List of file names/IDs
20
- * @type {Array<string>}
21
- * @memberof UploadedDocuments
22
- */
23
- files: Array<string>;
24
- /**
25
- * List of folder names
26
- * @type {Array<string>}
27
- * @memberof UploadedDocuments
28
- */
29
- folders: Array<string>;
30
- /**
31
- * The current folder
32
- * @type {string}
33
- * @memberof UploadedDocuments
34
- */
35
- currentFolder: string;
36
- }
37
- /**
38
- * Check if a given object implements the UploadedDocuments interface.
39
- */
40
- export declare function instanceOfUploadedDocuments(value: object): value is UploadedDocuments;
41
- export declare function UploadedDocumentsFromJSON(json: any): UploadedDocuments;
42
- export declare function UploadedDocumentsFromJSONTyped(json: any, ignoreDiscriminator: boolean): UploadedDocuments;
43
- export declare function UploadedDocumentsToJSON(json: any): UploadedDocuments;
44
- export declare function UploadedDocumentsToJSONTyped(value?: UploadedDocuments | null, ignoreDiscriminator?: boolean): any;
45
- //# sourceMappingURL=uploaded-documents.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"uploaded-documents.d.ts","sourceRoot":"","sources":["../../../src/generated/models/uploaded-documents.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACrB;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAKrF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAUzG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWxH"}
@@ -1,59 +0,0 @@
1
- "use strict";
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
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.UploadedDocumentsToJSONTyped = exports.UploadedDocumentsToJSON = exports.UploadedDocumentsFromJSONTyped = exports.UploadedDocumentsFromJSON = exports.instanceOfUploadedDocuments = void 0;
17
- /**
18
- * Check if a given object implements the UploadedDocuments interface.
19
- */
20
- function instanceOfUploadedDocuments(value) {
21
- if (!('files' in value) || value['files'] === undefined)
22
- return false;
23
- if (!('folders' in value) || value['folders'] === undefined)
24
- return false;
25
- if (!('currentFolder' in value) || value['currentFolder'] === undefined)
26
- return false;
27
- return true;
28
- }
29
- exports.instanceOfUploadedDocuments = instanceOfUploadedDocuments;
30
- function UploadedDocumentsFromJSON(json) {
31
- return UploadedDocumentsFromJSONTyped(json, false);
32
- }
33
- exports.UploadedDocumentsFromJSON = UploadedDocumentsFromJSON;
34
- function UploadedDocumentsFromJSONTyped(json, ignoreDiscriminator) {
35
- if (json == null) {
36
- return json;
37
- }
38
- return {
39
- 'files': json['files'],
40
- 'folders': json['folders'],
41
- 'currentFolder': json['currentFolder'],
42
- };
43
- }
44
- exports.UploadedDocumentsFromJSONTyped = UploadedDocumentsFromJSONTyped;
45
- function UploadedDocumentsToJSON(json) {
46
- return UploadedDocumentsToJSONTyped(json, false);
47
- }
48
- exports.UploadedDocumentsToJSON = UploadedDocumentsToJSON;
49
- function UploadedDocumentsToJSONTyped(value, ignoreDiscriminator = false) {
50
- if (value == null) {
51
- return value;
52
- }
53
- return {
54
- 'files': value['files'],
55
- 'folders': value['folders'],
56
- 'currentFolder': value['currentFolder'],
57
- };
58
- }
59
- exports.UploadedDocumentsToJSONTyped = UploadedDocumentsToJSONTyped;
@@ -1,33 +0,0 @@
1
- {
2
- "name": "@managespace/sdk",
3
- "version": "0.0.132",
4
- "scripts": {
5
- "dev": "tsc -w --preserveWatchOutput",
6
- "build": "tsc",
7
- "lint:check": "eslint .",
8
- "lint:fix": "eslint --fix .",
9
- "upload": "tsc && npm publish"
10
- },
11
- "main": "./dist/index.js",
12
- "types": "./dist/index.d.ts",
13
- "exports": {
14
- ".": {
15
- "types": "./dist/index.d.ts",
16
- "default": "./dist/index.js"
17
- },
18
- "./*": {
19
- "types": "./dist/index.d.ts",
20
- "default": "./dist/index.js"
21
- }
22
- },
23
- "dependencies": {
24
- "tslib": "^2.4.0",
25
- "zod": "^3.23.8"
26
- },
27
- "devDependencies": {
28
- "@types/node": "^12",
29
- "typescript": "^4.0",
30
- "@repo/eslint-config": "*",
31
- "@repo/typescript-config": "*"
32
- }
33
- }
@@ -1,75 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * ManageSpace API
5
- * ManageSpace API Documentation
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
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface DocumentUrl
20
- */
21
- export interface DocumentUrl {
22
- /**
23
- * The ID of the document.
24
- * @type {string}
25
- * @memberof DocumentUrl
26
- */
27
- id: string;
28
- /**
29
- * The URL of the document.
30
- * @type {string}
31
- * @memberof DocumentUrl
32
- */
33
- url: string;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the DocumentUrl interface.
38
- */
39
- export function instanceOfDocumentUrl(value: object): value is DocumentUrl {
40
- if (!('id' in value) || value['id'] === undefined) return false;
41
- if (!('url' in value) || value['url'] === undefined) return false;
42
- return true;
43
- }
44
-
45
- export function DocumentUrlFromJSON(json: any): DocumentUrl {
46
- return DocumentUrlFromJSONTyped(json, false);
47
- }
48
-
49
- export function DocumentUrlFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentUrl {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'id': json['id'],
56
- 'url': json['url'],
57
- };
58
- }
59
-
60
- export function DocumentUrlToJSON(json: any): DocumentUrl {
61
- return DocumentUrlToJSONTyped(json, false);
62
- }
63
-
64
- export function DocumentUrlToJSONTyped(value?: DocumentUrl | null, ignoreDiscriminator: boolean = false): any {
65
- if (value == null) {
66
- return value;
67
- }
68
-
69
- return {
70
-
71
- 'id': value['id'],
72
- 'url': value['url'],
73
- };
74
- }
75
-
@@ -1,75 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * ManageSpace API
5
- * ManageSpace API Documentation
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
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface Document
20
- */
21
- export interface Document {
22
- /**
23
- * The ID of the document.
24
- * @type {string}
25
- * @memberof Document
26
- */
27
- documentId: string;
28
- /**
29
- * The URL of the document.
30
- * @type {string}
31
- * @memberof Document
32
- */
33
- documentUrl: string;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the Document interface.
38
- */
39
- export function instanceOfDocument(value: object): value is Document {
40
- if (!('documentId' in value) || value['documentId'] === undefined) return false;
41
- if (!('documentUrl' in value) || value['documentUrl'] === undefined) return false;
42
- return true;
43
- }
44
-
45
- export function DocumentFromJSON(json: any): Document {
46
- return DocumentFromJSONTyped(json, false);
47
- }
48
-
49
- export function DocumentFromJSONTyped(json: any, ignoreDiscriminator: boolean): Document {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'documentId': json['documentId'],
56
- 'documentUrl': json['documentUrl'],
57
- };
58
- }
59
-
60
- export function DocumentToJSON(json: any): Document {
61
- return DocumentToJSONTyped(json, false);
62
- }
63
-
64
- export function DocumentToJSONTyped(value?: Document | null, ignoreDiscriminator: boolean = false): any {
65
- if (value == null) {
66
- return value;
67
- }
68
-
69
- return {
70
-
71
- 'documentId': value['documentId'],
72
- 'documentUrl': value['documentUrl'],
73
- };
74
- }
75
-
@@ -1,89 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * ManageSpace API
5
- * ManageSpace API Documentation
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
- import { mapValues } from '../runtime';
16
- import type { PageMeta } from './page-meta';
17
- import {
18
- PageMetaFromJSON,
19
- PageMetaFromJSONTyped,
20
- PageMetaToJSON,
21
- PageMetaToJSONTyped,
22
- } from './page-meta';
23
- import type { DocumentUrl } from './document-url';
24
- import {
25
- DocumentUrlFromJSON,
26
- DocumentUrlFromJSONTyped,
27
- DocumentUrlToJSON,
28
- DocumentUrlToJSONTyped,
29
- } from './document-url';
30
-
31
- /**
32
- *
33
- * @export
34
- * @interface GetDocuments200Response
35
- */
36
- export interface GetDocuments200Response {
37
- /**
38
- * The pagination metadata
39
- * @type {PageMeta}
40
- * @memberof GetDocuments200Response
41
- */
42
- pageMeta: PageMeta;
43
- /**
44
- *
45
- * @type {Array<DocumentUrl>}
46
- * @memberof GetDocuments200Response
47
- */
48
- results?: Array<DocumentUrl>;
49
- }
50
-
51
- /**
52
- * Check if a given object implements the GetDocuments200Response interface.
53
- */
54
- export function instanceOfGetDocuments200Response(value: object): value is GetDocuments200Response {
55
- if (!('pageMeta' in value) || value['pageMeta'] === undefined) return false;
56
- return true;
57
- }
58
-
59
- export function GetDocuments200ResponseFromJSON(json: any): GetDocuments200Response {
60
- return GetDocuments200ResponseFromJSONTyped(json, false);
61
- }
62
-
63
- export function GetDocuments200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetDocuments200Response {
64
- if (json == null) {
65
- return json;
66
- }
67
- return {
68
-
69
- 'pageMeta': PageMetaFromJSON(json['pageMeta']),
70
- 'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(DocumentUrlFromJSON)),
71
- };
72
- }
73
-
74
- export function GetDocuments200ResponseToJSON(json: any): GetDocuments200Response {
75
- return GetDocuments200ResponseToJSONTyped(json, false);
76
- }
77
-
78
- export function GetDocuments200ResponseToJSONTyped(value?: GetDocuments200Response | null, ignoreDiscriminator: boolean = false): any {
79
- if (value == null) {
80
- return value;
81
- }
82
-
83
- return {
84
-
85
- 'pageMeta': PageMetaToJSON(value['pageMeta']),
86
- 'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(DocumentUrlToJSON)),
87
- };
88
- }
89
-