@managespace/sdk 0.1.190 → 0.1.191

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 (31) hide show
  1. package/dist/extensibility/functions/project/billing.d.ts +28 -0
  2. package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
  3. package/dist/extensibility/functions/project/billing.js +5 -0
  4. package/dist/generated/apis/default-api.d.ts +3 -3
  5. package/dist/generated/apis/default-api.d.ts.map +1 -1
  6. package/dist/generated/apis/default-api.js +5 -5
  7. package/dist/generated/models/index.d.ts +0 -3
  8. package/dist/generated/models/index.d.ts.map +1 -1
  9. package/dist/generated/models/index.js +0 -3
  10. package/dist/generated/models/template-field.d.ts +3 -4
  11. package/dist/generated/models/template-field.d.ts.map +1 -1
  12. package/dist/generated/models/template-field.js +2 -3
  13. package/package.deploy.json +8 -4
  14. package/package.json +4 -3
  15. package/src/extensibility/functions/project/billing.ts +32 -0
  16. package/src/generated/.openapi-generator/FILES +0 -3
  17. package/src/generated/apis/default-api.ts +6 -6
  18. package/src/generated/models/index.ts +0 -3
  19. package/src/generated/models/template-field.ts +5 -12
  20. package/dist/generated/models/field-condition-action.d.ts +0 -26
  21. package/dist/generated/models/field-condition-action.d.ts.map +0 -1
  22. package/dist/generated/models/field-condition-action.js +0 -52
  23. package/dist/generated/models/field-condition-operation.d.ts +0 -30
  24. package/dist/generated/models/field-condition-operation.d.ts.map +0 -1
  25. package/dist/generated/models/field-condition-operation.js +0 -56
  26. package/dist/generated/models/field-condition.d.ts +0 -59
  27. package/dist/generated/models/field-condition.d.ts.map +0 -1
  28. package/dist/generated/models/field-condition.js +0 -65
  29. package/src/generated/models/field-condition-action.ts +0 -54
  30. package/src/generated/models/field-condition-operation.ts +0 -58
  31. package/src/generated/models/field-condition.ts +0 -118
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { FieldCondition } from './field-condition';
13
12
  import type { FieldArea } from './field-area';
14
13
  import type { FieldPreferences } from './field-preferences';
15
14
  import type { FieldType } from './field-type';
@@ -44,11 +43,11 @@ export interface TemplateField {
44
43
  */
45
44
  areas: Array<FieldArea>;
46
45
  /**
47
- * Conditions that show/hide this field based on other field values. Matches DocuSeal’s array-of-objects shape. Provide either field_uuid (preferred, once known) or field_name (fallback).
48
- * @type {Array<FieldCondition>}
46
+ * Condition to show/hide field based on another field value
47
+ * @type {string}
49
48
  * @memberof TemplateField
50
49
  */
51
- conditions?: Array<FieldCondition>;
50
+ condition?: string;
52
51
  /**
53
52
  * The options for select fields
54
53
  * @type {Array<string>}
@@ -1 +1 @@
1
- {"version":3,"file":"template-field.d.ts","sourceRoot":"","sources":["../../../src/generated/models/template-field.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAOxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAO9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAO5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAQ9C;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;;;OAIG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IACxB;;;;OAIG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IACnC;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACxB;;;;OAIG;IACH,WAAW,CAAC,EAAE,gBAAgB,CAAC;CAClC;AAID;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAM7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAcjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAehH"}
1
+ {"version":3,"file":"template-field.d.ts","sourceRoot":"","sources":["../../../src/generated/models/template-field.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAO9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAO5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAQ9C;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;;;OAIG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IACxB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACxB;;;;OAIG;IACH,WAAW,CAAC,EAAE,gBAAgB,CAAC;CAClC;AAID;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAM7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAcjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAehH"}
@@ -19,7 +19,6 @@ exports.TemplateFieldFromJSON = TemplateFieldFromJSON;
19
19
  exports.TemplateFieldFromJSONTyped = TemplateFieldFromJSONTyped;
20
20
  exports.TemplateFieldToJSON = TemplateFieldToJSON;
21
21
  exports.TemplateFieldToJSONTyped = TemplateFieldToJSONTyped;
22
- const field_condition_1 = require("./field-condition");
23
22
  const field_area_1 = require("./field-area");
24
23
  const field_preferences_1 = require("./field-preferences");
25
24
  const field_type_1 = require("./field-type");
@@ -49,7 +48,7 @@ function TemplateFieldFromJSONTyped(json, ignoreDiscriminator) {
49
48
  'type': (0, field_type_1.FieldTypeFromJSON)(json['type']),
50
49
  'required': json['required'],
51
50
  'areas': (json['areas'].map(field_area_1.FieldAreaFromJSON)),
52
- 'conditions': json['conditions'] == null ? undefined : (json['conditions'].map(field_condition_1.FieldConditionFromJSON)),
51
+ 'condition': json['condition'] == null ? undefined : json['condition'],
53
52
  'options': json['options'] == null ? undefined : json['options'],
54
53
  'preferences': json['preferences'] == null ? undefined : (0, field_preferences_1.FieldPreferencesFromJSON)(json['preferences']),
55
54
  };
@@ -66,7 +65,7 @@ function TemplateFieldToJSONTyped(value, ignoreDiscriminator = false) {
66
65
  'type': (0, field_type_1.FieldTypeToJSON)(value['type']),
67
66
  'required': value['required'],
68
67
  'areas': (value['areas'].map(field_area_1.FieldAreaToJSON)),
69
- 'conditions': value['conditions'] == null ? undefined : (value['conditions'].map(field_condition_1.FieldConditionToJSON)),
68
+ 'condition': value['condition'],
70
69
  'options': value['options'],
71
70
  'preferences': (0, field_preferences_1.FieldPreferencesToJSON)(value['preferences']),
72
71
  };
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@managespace/sdk",
3
- "version": "0.1.184",
3
+ "version": "0.1.175-documents",
4
4
  "scripts": {
5
5
  "dev": "tsc -w --preserveWatchOutput",
6
6
  "build": "tsc",
7
7
  "lint:check": "eslint .",
8
8
  "lint:fix": "eslint --fix .",
9
9
  "lint:fix:cache": "eslint --fix .",
10
- "upload": "tsc && npm publish"
10
+ "upload": "tsc && npm publish",
11
+ "upload:beta": "tsc && npm publish --tag documents"
11
12
  },
12
13
  "main": "./dist/index.js",
13
14
  "types": "./dist/index.d.ts",
@@ -29,5 +30,8 @@
29
30
  "typescript": "~5.4.2",
30
31
  "@repo/eslint-config": "*",
31
32
  "@repo/typescript-config": "*"
32
- }
33
- }
33
+ },
34
+ "tags": [
35
+ "beta"
36
+ ]
37
+ }
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@managespace/sdk",
3
- "version": "0.1.190",
3
+ "version": "0.1.191",
4
4
  "scripts": {
5
5
  "dev": "tsc -w --preserveWatchOutput",
6
6
  "build": "tsc",
7
7
  "lint:check": "eslint .",
8
8
  "lint:fix": "eslint --fix .",
9
9
  "lint:fix:cache": "eslint --fix .",
10
- "upload": "tsc && npm publish"
10
+ "upload": "tsc && npm publish",
11
+ "upload:beta": "tsc && npm publish --tag documents"
11
12
  },
12
13
  "main": "./dist/index.js",
13
14
  "types": "./dist/index.d.ts",
@@ -30,4 +31,4 @@
30
31
  "@repo/eslint-config": "*",
31
32
  "@repo/typescript-config": "*"
32
33
  }
33
- }
34
+ }
@@ -588,4 +588,36 @@ export namespace Billing {
588
588
 
589
589
  payload!: Record<string, never>;
590
590
  }
591
+
592
+ export type GatewayTransaction = {
593
+ gatewayTransactionId: string;
594
+ paymentId: string | null;
595
+ orderId: string;
596
+ merchantAccountId: string;
597
+ createdAt: string;
598
+ status: string;
599
+ amount: string;
600
+ disbursementDate: string | null;
601
+ disbursementId: string | null;
602
+ settledAmount: string | null;
603
+ };
604
+
605
+ export type GatewayTransactionPage = {
606
+ items: GatewayTransaction[];
607
+ nextCursor: string | null;
608
+ };
609
+
610
+ export class GetGatewayTransactions implements ExtPlugin {
611
+ responseType!: GatewayTransactionPage;
612
+
613
+ payload!: {
614
+ startDate: string;
615
+ endDate: string;
616
+ merchantAccountIds: string[];
617
+ pageOptions: {
618
+ cursor?: string;
619
+ limit: number;
620
+ };
621
+ };
622
+ }
591
623
  }
@@ -115,9 +115,6 @@ models/extensibility-function-metadata.ts
115
115
  models/extensibility-repo.ts
116
116
  models/extensibility-status.ts
117
117
  models/field-area.ts
118
- models/field-condition-action.ts
119
- models/field-condition-operation.ts
120
- models/field-condition.ts
121
118
  models/field-preferences.ts
122
119
  models/field-type.ts
123
120
  models/filter-item-value.ts
@@ -923,7 +923,7 @@ export interface GenerateAccountsReceivableReportRequest {
923
923
  accountsReceivableReportFilters: AccountsReceivableReportFilters;
924
924
  }
925
925
 
926
- export interface GenerateAccrualCsvRequest {
926
+ export interface GenerateAccrualExcelRequest {
927
927
  accrualReportFilters: AccrualReportFilters;
928
928
  }
929
929
 
@@ -4370,11 +4370,11 @@ export class DefaultApi extends runtime.BaseAPI {
4370
4370
 
4371
4371
  /**
4372
4372
  */
4373
- async generateAccrualCsvRaw(requestParameters: GenerateAccrualCsvRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
4373
+ async generateAccrualExcelRaw(requestParameters: GenerateAccrualExcelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
4374
4374
  if (requestParameters['accrualReportFilters'] == null) {
4375
4375
  throw new runtime.RequiredError(
4376
4376
  'accrualReportFilters',
4377
- 'Required parameter "accrualReportFilters" was null or undefined when calling generateAccrualCsv().'
4377
+ 'Required parameter "accrualReportFilters" was null or undefined when calling generateAccrualExcel().'
4378
4378
  );
4379
4379
  }
4380
4380
 
@@ -4393,7 +4393,7 @@ export class DefaultApi extends runtime.BaseAPI {
4393
4393
  }
4394
4394
  }
4395
4395
  const response = await this.request({
4396
- path: `/api/org/reports/accrual/csv`,
4396
+ path: `/api/org/reports/accrual/excel`,
4397
4397
  method: 'POST',
4398
4398
  headers: headerParameters,
4399
4399
  query: queryParameters,
@@ -4405,8 +4405,8 @@ export class DefaultApi extends runtime.BaseAPI {
4405
4405
 
4406
4406
  /**
4407
4407
  */
4408
- async generateAccrualCsv(requestParameters: GenerateAccrualCsvRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
4409
- await this.generateAccrualCsvRaw(requestParameters, initOverrides);
4408
+ async generateAccrualExcel(requestParameters: GenerateAccrualExcelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
4409
+ await this.generateAccrualExcelRaw(requestParameters, initOverrides);
4410
4410
  }
4411
4411
 
4412
4412
  /**
@@ -115,9 +115,6 @@ export * from './extensibility-function-metadata';
115
115
  export * from './extensibility-repo';
116
116
  export * from './extensibility-status';
117
117
  export * from './field-area';
118
- export * from './field-condition';
119
- export * from './field-condition-action';
120
- export * from './field-condition-operation';
121
118
  export * from './field-preferences';
122
119
  export * from './field-type';
123
120
  export * from './filter-item';
@@ -14,13 +14,6 @@
14
14
  */
15
15
 
16
16
  import { mapValues } from '../runtime';
17
- import type { FieldCondition } from './field-condition';
18
- import {
19
- FieldConditionFromJSON,
20
- FieldConditionFromJSONTyped,
21
- FieldConditionToJSON,
22
- FieldConditionToJSONTyped,
23
- } from './field-condition';
24
17
  import type { FieldArea } from './field-area';
25
18
  import {
26
19
  FieldAreaFromJSON,
@@ -74,11 +67,11 @@ export interface TemplateField {
74
67
  */
75
68
  areas: Array<FieldArea>;
76
69
  /**
77
- * Conditions that show/hide this field based on other field values. Matches DocuSeal’s array-of-objects shape. Provide either field_uuid (preferred, once known) or field_name (fallback).
78
- * @type {Array<FieldCondition>}
70
+ * Condition to show/hide field based on another field value
71
+ * @type {string}
79
72
  * @memberof TemplateField
80
73
  */
81
- conditions?: Array<FieldCondition>;
74
+ condition?: string;
82
75
  /**
83
76
  * The options for select fields
84
77
  * @type {Array<string>}
@@ -120,7 +113,7 @@ export function TemplateFieldFromJSONTyped(json: any, ignoreDiscriminator: boole
120
113
  'type': FieldTypeFromJSON(json['type']),
121
114
  'required': json['required'],
122
115
  'areas': ((json['areas'] as Array<any>).map(FieldAreaFromJSON)),
123
- 'conditions': json['conditions'] == null ? undefined : ((json['conditions'] as Array<any>).map(FieldConditionFromJSON)),
116
+ 'condition': json['condition'] == null ? undefined : json['condition'],
124
117
  'options': json['options'] == null ? undefined : json['options'],
125
118
  'preferences': json['preferences'] == null ? undefined : FieldPreferencesFromJSON(json['preferences']),
126
119
  };
@@ -141,7 +134,7 @@ export function TemplateFieldToJSONTyped(value?: TemplateField | null, ignoreDis
141
134
  'type': FieldTypeToJSON(value['type']),
142
135
  'required': value['required'],
143
136
  'areas': ((value['areas'] as Array<any>).map(FieldAreaToJSON)),
144
- 'conditions': value['conditions'] == null ? undefined : ((value['conditions'] as Array<any>).map(FieldConditionToJSON)),
137
+ 'condition': value['condition'],
145
138
  'options': value['options'],
146
139
  'preferences': FieldPreferencesToJSON(value['preferences']),
147
140
  };
@@ -1,26 +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
- */
16
- export declare const FieldConditionAction: {
17
- readonly show: "show";
18
- readonly hide: "hide";
19
- };
20
- export type FieldConditionAction = typeof FieldConditionAction[keyof typeof FieldConditionAction];
21
- export declare function instanceOfFieldConditionAction(value: any): boolean;
22
- export declare function FieldConditionActionFromJSON(json: any): FieldConditionAction;
23
- export declare function FieldConditionActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldConditionAction;
24
- export declare function FieldConditionActionToJSON(value?: FieldConditionAction | null): any;
25
- export declare function FieldConditionActionToJSONTyped(value: any, ignoreDiscriminator: boolean): FieldConditionAction;
26
- //# sourceMappingURL=field-condition-action.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"field-condition-action.d.ts","sourceRoot":"","sources":["../../../src/generated/models/field-condition-action.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;CAGvB,CAAC;AACX,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAGlG,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CASlE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAE/G;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,GAAG,GAAG,CAEnF;AAED,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAE9G"}
@@ -1,52 +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.FieldConditionAction = void 0;
18
- exports.instanceOfFieldConditionAction = instanceOfFieldConditionAction;
19
- exports.FieldConditionActionFromJSON = FieldConditionActionFromJSON;
20
- exports.FieldConditionActionFromJSONTyped = FieldConditionActionFromJSONTyped;
21
- exports.FieldConditionActionToJSON = FieldConditionActionToJSON;
22
- exports.FieldConditionActionToJSONTyped = FieldConditionActionToJSONTyped;
23
- /**
24
- *
25
- * @export
26
- */
27
- exports.FieldConditionAction = {
28
- show: 'show',
29
- hide: 'hide'
30
- };
31
- function instanceOfFieldConditionAction(value) {
32
- for (const key in exports.FieldConditionAction) {
33
- if (Object.prototype.hasOwnProperty.call(exports.FieldConditionAction, key)) {
34
- if (exports.FieldConditionAction[key] === value) {
35
- return true;
36
- }
37
- }
38
- }
39
- return false;
40
- }
41
- function FieldConditionActionFromJSON(json) {
42
- return FieldConditionActionFromJSONTyped(json, false);
43
- }
44
- function FieldConditionActionFromJSONTyped(json, ignoreDiscriminator) {
45
- return json;
46
- }
47
- function FieldConditionActionToJSON(value) {
48
- return value;
49
- }
50
- function FieldConditionActionToJSONTyped(value, ignoreDiscriminator) {
51
- return value;
52
- }
@@ -1,30 +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
- */
16
- export declare const FieldConditionOperation: {
17
- readonly equal: "equal";
18
- readonly not_equal: "not_equal";
19
- readonly contains: "contains";
20
- readonly not_contains: "not_contains";
21
- readonly empty: "empty";
22
- readonly not_empty: "not_empty";
23
- };
24
- export type FieldConditionOperation = typeof FieldConditionOperation[keyof typeof FieldConditionOperation];
25
- export declare function instanceOfFieldConditionOperation(value: any): boolean;
26
- export declare function FieldConditionOperationFromJSON(json: any): FieldConditionOperation;
27
- export declare function FieldConditionOperationFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldConditionOperation;
28
- export declare function FieldConditionOperationToJSON(value?: FieldConditionOperation | null): any;
29
- export declare function FieldConditionOperationToJSONTyped(value: any, ignoreDiscriminator: boolean): FieldConditionOperation;
30
- //# sourceMappingURL=field-condition-operation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"field-condition-operation.d.ts","sourceRoot":"","sources":["../../../src/generated/models/field-condition-operation.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,uBAAuB;;;;;;;CAO1B,CAAC;AACX,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAC,MAAM,OAAO,uBAAuB,CAAC,CAAC;AAG3G,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CASrE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB,CAElF;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,uBAAuB,CAErH;AAED,wBAAgB,6BAA6B,CAAC,KAAK,CAAC,EAAE,uBAAuB,GAAG,IAAI,GAAG,GAAG,CAEzF;AAED,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,uBAAuB,CAEpH"}
@@ -1,56 +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.FieldConditionOperation = void 0;
18
- exports.instanceOfFieldConditionOperation = instanceOfFieldConditionOperation;
19
- exports.FieldConditionOperationFromJSON = FieldConditionOperationFromJSON;
20
- exports.FieldConditionOperationFromJSONTyped = FieldConditionOperationFromJSONTyped;
21
- exports.FieldConditionOperationToJSON = FieldConditionOperationToJSON;
22
- exports.FieldConditionOperationToJSONTyped = FieldConditionOperationToJSONTyped;
23
- /**
24
- *
25
- * @export
26
- */
27
- exports.FieldConditionOperation = {
28
- equal: 'equal',
29
- not_equal: 'not_equal',
30
- contains: 'contains',
31
- not_contains: 'not_contains',
32
- empty: 'empty',
33
- not_empty: 'not_empty'
34
- };
35
- function instanceOfFieldConditionOperation(value) {
36
- for (const key in exports.FieldConditionOperation) {
37
- if (Object.prototype.hasOwnProperty.call(exports.FieldConditionOperation, key)) {
38
- if (exports.FieldConditionOperation[key] === value) {
39
- return true;
40
- }
41
- }
42
- }
43
- return false;
44
- }
45
- function FieldConditionOperationFromJSON(json) {
46
- return FieldConditionOperationFromJSONTyped(json, false);
47
- }
48
- function FieldConditionOperationFromJSONTyped(json, ignoreDiscriminator) {
49
- return json;
50
- }
51
- function FieldConditionOperationToJSON(value) {
52
- return value;
53
- }
54
- function FieldConditionOperationToJSONTyped(value, ignoreDiscriminator) {
55
- return value;
56
- }
@@ -1,59 +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 { FieldConditionOperation } from './field-condition-operation';
13
- import type { FieldConditionAction } from './field-condition-action';
14
- /**
15
- *
16
- * @export
17
- * @interface FieldCondition
18
- */
19
- export interface FieldCondition {
20
- /**
21
- * UUID of the field to evaluate. Preferred — DocuSeal stores conditions by UUID.
22
- * @type {string}
23
- * @memberof FieldCondition
24
- */
25
- fieldUuid?: string;
26
- /**
27
- * Name of the field to evaluate. Fallback when the UUID is not yet known.
28
- * @type {string}
29
- * @memberof FieldCondition
30
- */
31
- fieldName?: string;
32
- /**
33
- * The value to compare against.
34
- * @type {string}
35
- * @memberof FieldCondition
36
- */
37
- value: string;
38
- /**
39
- *
40
- * @type {FieldConditionAction}
41
- * @memberof FieldCondition
42
- */
43
- action: FieldConditionAction;
44
- /**
45
- *
46
- * @type {FieldConditionOperation}
47
- * @memberof FieldCondition
48
- */
49
- operation: FieldConditionOperation;
50
- }
51
- /**
52
- * Check if a given object implements the FieldCondition interface.
53
- */
54
- export declare function instanceOfFieldCondition(value: object): value is FieldCondition;
55
- export declare function FieldConditionFromJSON(json: any): FieldCondition;
56
- export declare function FieldConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldCondition;
57
- export declare function FieldConditionToJSON(json: any): FieldCondition;
58
- export declare function FieldConditionToJSONTyped(value?: FieldCondition | null, ignoreDiscriminator?: boolean): any;
59
- //# sourceMappingURL=field-condition.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"field-condition.d.ts","sourceRoot":"","sources":["../../../src/generated/models/field-condition.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAO3E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAQrE;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,MAAM,EAAE,oBAAoB,CAAC;IAC7B;;;;OAIG;IACH,SAAS,EAAE,uBAAuB,CAAC;CACtC;AAID;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAK/E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CAYnG;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,CAalH"}
@@ -1,65 +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.instanceOfFieldCondition = instanceOfFieldCondition;
18
- exports.FieldConditionFromJSON = FieldConditionFromJSON;
19
- exports.FieldConditionFromJSONTyped = FieldConditionFromJSONTyped;
20
- exports.FieldConditionToJSON = FieldConditionToJSON;
21
- exports.FieldConditionToJSONTyped = FieldConditionToJSONTyped;
22
- const field_condition_operation_1 = require("./field-condition-operation");
23
- const field_condition_action_1 = require("./field-condition-action");
24
- /**
25
- * Check if a given object implements the FieldCondition interface.
26
- */
27
- function instanceOfFieldCondition(value) {
28
- if (!('value' in value) || value['value'] === undefined)
29
- return false;
30
- if (!('action' in value) || value['action'] === undefined)
31
- return false;
32
- if (!('operation' in value) || value['operation'] === undefined)
33
- return false;
34
- return true;
35
- }
36
- function FieldConditionFromJSON(json) {
37
- return FieldConditionFromJSONTyped(json, false);
38
- }
39
- function FieldConditionFromJSONTyped(json, ignoreDiscriminator) {
40
- if (json == null) {
41
- return json;
42
- }
43
- return {
44
- 'fieldUuid': json['field_uuid'] == null ? undefined : json['field_uuid'],
45
- 'fieldName': json['field_name'] == null ? undefined : json['field_name'],
46
- 'value': json['value'],
47
- 'action': (0, field_condition_action_1.FieldConditionActionFromJSON)(json['action']),
48
- 'operation': (0, field_condition_operation_1.FieldConditionOperationFromJSON)(json['operation']),
49
- };
50
- }
51
- function FieldConditionToJSON(json) {
52
- return FieldConditionToJSONTyped(json, false);
53
- }
54
- function FieldConditionToJSONTyped(value, ignoreDiscriminator = false) {
55
- if (value == null) {
56
- return value;
57
- }
58
- return {
59
- 'field_uuid': value['fieldUuid'],
60
- 'field_name': value['fieldName'],
61
- 'value': value['value'],
62
- 'action': (0, field_condition_action_1.FieldConditionActionToJSON)(value['action']),
63
- 'operation': (0, field_condition_operation_1.FieldConditionOperationToJSON)(value['operation']),
64
- };
65
- }
@@ -1,54 +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
-
17
- /**
18
- *
19
- * @export
20
- */
21
- export const FieldConditionAction = {
22
- show: 'show',
23
- hide: 'hide'
24
- } as const;
25
- export type FieldConditionAction = typeof FieldConditionAction[keyof typeof FieldConditionAction];
26
-
27
-
28
- export function instanceOfFieldConditionAction(value: any): boolean {
29
- for (const key in FieldConditionAction) {
30
- if (Object.prototype.hasOwnProperty.call(FieldConditionAction, key)) {
31
- if (FieldConditionAction[key as keyof typeof FieldConditionAction] === value) {
32
- return true;
33
- }
34
- }
35
- }
36
- return false;
37
- }
38
-
39
- export function FieldConditionActionFromJSON(json: any): FieldConditionAction {
40
- return FieldConditionActionFromJSONTyped(json, false);
41
- }
42
-
43
- export function FieldConditionActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldConditionAction {
44
- return json as FieldConditionAction;
45
- }
46
-
47
- export function FieldConditionActionToJSON(value?: FieldConditionAction | null): any {
48
- return value as any;
49
- }
50
-
51
- export function FieldConditionActionToJSONTyped(value: any, ignoreDiscriminator: boolean): FieldConditionAction {
52
- return value as FieldConditionAction;
53
- }
54
-