@managespace/sdk 0.1.191 → 0.1.192
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/extensibility/functions/project/billing.d.ts +0 -28
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/extensibility/functions/project/billing.js +0 -5
- package/dist/generated/apis/default-api.d.ts +3 -3
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +5 -5
- package/dist/generated/models/field-condition-action.d.ts +32 -0
- package/dist/generated/models/field-condition-action.d.ts.map +1 -0
- package/dist/generated/models/field-condition-action.js +58 -0
- package/dist/generated/models/field-condition-operation.d.ts +25 -0
- package/dist/generated/models/field-condition-operation.d.ts.map +1 -0
- package/dist/generated/models/field-condition-operation.js +51 -0
- package/dist/generated/models/field-condition.d.ts +59 -0
- package/dist/generated/models/field-condition.d.ts.map +1 -0
- package/dist/generated/models/field-condition.js +61 -0
- package/dist/generated/models/index.d.ts +3 -0
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +3 -0
- package/dist/generated/models/template-field.d.ts +4 -3
- package/dist/generated/models/template-field.d.ts.map +1 -1
- package/dist/generated/models/template-field.js +3 -2
- package/package.deploy.json +4 -8
- package/package.json +3 -4
- package/src/extensibility/functions/project/billing.ts +0 -32
- package/src/generated/.openapi-generator/FILES +3 -0
- package/src/generated/apis/default-api.ts +6 -6
- package/src/generated/models/field-condition-action.ts +60 -0
- package/src/generated/models/field-condition-operation.ts +53 -0
- package/src/generated/models/field-condition.ts +116 -0
- package/src/generated/models/index.ts +3 -0
- package/src/generated/models/template-field.ts +12 -5
|
@@ -0,0 +1,116 @@
|
|
|
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 { FieldConditionOperation } from './field-condition-operation';
|
|
18
|
+
import {
|
|
19
|
+
FieldConditionOperationFromJSON,
|
|
20
|
+
FieldConditionOperationFromJSONTyped,
|
|
21
|
+
FieldConditionOperationToJSON,
|
|
22
|
+
FieldConditionOperationToJSONTyped,
|
|
23
|
+
} from './field-condition-operation';
|
|
24
|
+
import type { FieldConditionAction } from './field-condition-action';
|
|
25
|
+
import {
|
|
26
|
+
FieldConditionActionFromJSON,
|
|
27
|
+
FieldConditionActionFromJSONTyped,
|
|
28
|
+
FieldConditionActionToJSON,
|
|
29
|
+
FieldConditionActionToJSONTyped,
|
|
30
|
+
} from './field-condition-action';
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @export
|
|
35
|
+
* @interface FieldCondition
|
|
36
|
+
*/
|
|
37
|
+
export interface FieldCondition {
|
|
38
|
+
/**
|
|
39
|
+
* UUID of the field to evaluate. Preferred — DocuSeal stores conditions by UUID.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof FieldCondition
|
|
42
|
+
*/
|
|
43
|
+
fieldUuid?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Name of the field to evaluate. Fallback when the UUID is not yet known.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof FieldCondition
|
|
48
|
+
*/
|
|
49
|
+
fieldName?: string;
|
|
50
|
+
/**
|
|
51
|
+
* The value to compare against. Optional for `empty` / `not_empty` actions.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof FieldCondition
|
|
54
|
+
*/
|
|
55
|
+
value?: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {FieldConditionAction}
|
|
59
|
+
* @memberof FieldCondition
|
|
60
|
+
*/
|
|
61
|
+
action: FieldConditionAction;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {FieldConditionOperation}
|
|
65
|
+
* @memberof FieldCondition
|
|
66
|
+
*/
|
|
67
|
+
operation?: FieldConditionOperation;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the FieldCondition interface.
|
|
74
|
+
*/
|
|
75
|
+
export function instanceOfFieldCondition(value: object): value is FieldCondition {
|
|
76
|
+
if (!('action' in value) || value['action'] === undefined) return false;
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function FieldConditionFromJSON(json: any): FieldCondition {
|
|
81
|
+
return FieldConditionFromJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function FieldConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldCondition {
|
|
85
|
+
if (json == null) {
|
|
86
|
+
return json;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'fieldUuid': json['field_uuid'] == null ? undefined : json['field_uuid'],
|
|
91
|
+
'fieldName': json['field_name'] == null ? undefined : json['field_name'],
|
|
92
|
+
'value': json['value'] == null ? undefined : json['value'],
|
|
93
|
+
'action': FieldConditionActionFromJSON(json['action']),
|
|
94
|
+
'operation': json['operation'] == null ? undefined : FieldConditionOperationFromJSON(json['operation']),
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function FieldConditionToJSON(json: any): FieldCondition {
|
|
99
|
+
return FieldConditionToJSONTyped(json, false);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function FieldConditionToJSONTyped(value?: FieldCondition | null, ignoreDiscriminator: boolean = false): any {
|
|
103
|
+
if (value == null) {
|
|
104
|
+
return value;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
return {
|
|
108
|
+
|
|
109
|
+
'field_uuid': value['fieldUuid'],
|
|
110
|
+
'field_name': value['fieldName'],
|
|
111
|
+
'value': value['value'],
|
|
112
|
+
'action': FieldConditionActionToJSON(value['action']),
|
|
113
|
+
'operation': FieldConditionOperationToJSON(value['operation']),
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|
|
@@ -115,6 +115,9 @@ 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';
|
|
118
121
|
export * from './field-preferences';
|
|
119
122
|
export * from './field-type';
|
|
120
123
|
export * from './filter-item';
|
|
@@ -14,6 +14,13 @@
|
|
|
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';
|
|
17
24
|
import type { FieldArea } from './field-area';
|
|
18
25
|
import {
|
|
19
26
|
FieldAreaFromJSON,
|
|
@@ -67,11 +74,11 @@ export interface TemplateField {
|
|
|
67
74
|
*/
|
|
68
75
|
areas: Array<FieldArea>;
|
|
69
76
|
/**
|
|
70
|
-
*
|
|
71
|
-
* @type {
|
|
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>}
|
|
72
79
|
* @memberof TemplateField
|
|
73
80
|
*/
|
|
74
|
-
|
|
81
|
+
conditions?: Array<FieldCondition>;
|
|
75
82
|
/**
|
|
76
83
|
* The options for select fields
|
|
77
84
|
* @type {Array<string>}
|
|
@@ -113,7 +120,7 @@ export function TemplateFieldFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
113
120
|
'type': FieldTypeFromJSON(json['type']),
|
|
114
121
|
'required': json['required'],
|
|
115
122
|
'areas': ((json['areas'] as Array<any>).map(FieldAreaFromJSON)),
|
|
116
|
-
'
|
|
123
|
+
'conditions': json['conditions'] == null ? undefined : ((json['conditions'] as Array<any>).map(FieldConditionFromJSON)),
|
|
117
124
|
'options': json['options'] == null ? undefined : json['options'],
|
|
118
125
|
'preferences': json['preferences'] == null ? undefined : FieldPreferencesFromJSON(json['preferences']),
|
|
119
126
|
};
|
|
@@ -134,7 +141,7 @@ export function TemplateFieldToJSONTyped(value?: TemplateField | null, ignoreDis
|
|
|
134
141
|
'type': FieldTypeToJSON(value['type']),
|
|
135
142
|
'required': value['required'],
|
|
136
143
|
'areas': ((value['areas'] as Array<any>).map(FieldAreaToJSON)),
|
|
137
|
-
'
|
|
144
|
+
'conditions': value['conditions'] == null ? undefined : ((value['conditions'] as Array<any>).map(FieldConditionToJSON)),
|
|
138
145
|
'options': value['options'],
|
|
139
146
|
'preferences': FieldPreferencesToJSON(value['preferences']),
|
|
140
147
|
};
|