humanos 1.0.2 → 1.0.3
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/README.md +310 -114
- package/dist/index.d.mts +3558 -1753
- package/dist/index.d.ts +3558 -1753
- package/dist/index.js +1621 -499
- package/dist/index.mjs +1578 -478
- package/generated/.openapi-generator/FILES +59 -33
- package/generated/api/actions-api.ts +273 -0
- package/generated/api/activity-api.ts +225 -0
- package/generated/api/{resource-api.ts → approval-api.ts} +65 -61
- package/generated/api/credentials-api.ts +365 -25
- package/generated/api/didapi.ts +138 -0
- package/generated/api/requests-api.ts +124 -134
- package/generated/api/user-api.ts +45 -36
- package/generated/api/webhooks-api.ts +84 -56
- package/generated/api.ts +5 -1
- package/generated/models/action-dto.ts +36 -0
- package/generated/models/action-entity.ts +57 -0
- package/generated/models/action-list-entity.ts +39 -0
- package/generated/models/action-query.ts +48 -0
- package/generated/models/action-ref-dto.ts +36 -0
- package/generated/models/action-version-detail-entity.ts +72 -0
- package/generated/models/action-version-list-entity.ts +39 -0
- package/generated/models/action-version-summary-entity.ts +48 -0
- package/generated/models/activities-entity.ts +39 -0
- package/generated/models/activity-entity.ts +90 -0
- package/generated/models/activity-query.ts +96 -0
- package/generated/models/consent.ts +36 -0
- package/generated/models/constraints-dto.ts +36 -0
- package/generated/models/{agent-detail-entity.ts → contact-entity.ts} +8 -8
- package/generated/models/create-presentation-dto.ts +30 -0
- package/generated/models/create-presentation400-response.ts +42 -0
- package/generated/models/create-presentation403-response.ts +42 -0
- package/generated/models/create-presentation404-response.ts +42 -0
- package/generated/models/create-subject-dto.ts +10 -4
- package/generated/models/create-subject-entity.ts +4 -4
- package/generated/models/{cancel-request404-response.ts → create400-response.ts} +5 -5
- package/generated/models/credential-dto-data-inner.ts +26 -0
- package/generated/models/credential-dto.ts +52 -6
- package/generated/models/credential-entity.ts +33 -7
- package/generated/models/{credential-subject.ts → credential-event-decision.ts} +13 -11
- package/generated/models/credential-event-user.ts +1 -1
- package/generated/models/credential-event.ts +15 -19
- package/generated/models/credential-placement-dto.ts +85 -0
- package/generated/models/credential-status.ts +5 -3
- package/generated/models/credentials-detail404-response.ts +42 -0
- package/generated/models/credentials-evidence404-response.ts +42 -0
- package/generated/models/credentials-issue-vp400-response.ts +42 -0
- package/generated/models/credentials-issue-vp403-response.ts +42 -0
- package/generated/models/credentials-issue-vp404-response.ts +42 -0
- package/generated/models/credentials-revoke400-response.ts +42 -0
- package/generated/models/credentials-revoke409-response.ts +42 -0
- package/generated/models/did-document-entity.ts +63 -0
- package/generated/models/evidence.ts +44 -0
- package/generated/models/generate-credential-entity.ts +2 -2
- package/generated/models/generate-request-dto.ts +18 -15
- package/generated/models/generate-request-entity.ts +6 -6
- package/generated/models/generate-subject-entity.ts +3 -3
- package/generated/models/get-evidence404-response.ts +42 -0
- package/generated/models/group-entity.ts +3 -3
- package/generated/models/groups-entity.ts +1 -1
- package/generated/models/identity-dto.ts +27 -27
- package/generated/models/identity-event-decision.ts +13 -1
- package/generated/models/{create-subject-user-entity.ts → identity-event-user.ts} +12 -12
- package/generated/models/identity-event.ts +14 -18
- package/generated/models/{identity-event-identity.ts → identity-payload.ts} +12 -12
- package/generated/models/index.ts +55 -32
- package/generated/models/{action-type.ts → json-value.ts} +6 -12
- package/generated/models/{mandate-data-dto-value.ts → organization-data-entity.ts} +9 -3
- package/generated/models/{issuer-detail-entity.ts → otp-error.ts} +8 -8
- package/generated/models/otp-failed-event-otp.ts +3 -3
- package/generated/models/otp-failed-event.ts +11 -15
- package/generated/models/partial-subject-entity.ts +42 -0
- package/generated/models/presentation-receipt-entity.ts +42 -0
- package/generated/models/presentation-response-entity.ts +39 -0
- package/generated/models/receipt-entity.ts +36 -0
- package/generated/models/request-credential-entity.ts +72 -0
- package/generated/models/request-detail-entity.ts +26 -20
- package/generated/models/request-detail-subject-entity.ts +87 -0
- package/generated/models/request-entity.ts +14 -8
- package/generated/models/request-query.ts +3 -21
- package/generated/models/request-subject-entity.ts +21 -6
- package/generated/models/requests-create400-response.ts +42 -0
- package/generated/models/requests-detail404-response.ts +42 -0
- package/generated/models/requests-entity.ts +1 -1
- package/generated/models/requests-resend-otp403-response.ts +42 -0
- package/generated/models/resend-otp403-response.ts +42 -0
- package/generated/models/resource-entity.ts +11 -3
- package/generated/models/{group-resource-entity.ts → resource-minimal-entity.ts} +13 -11
- package/generated/models/resource-query.ts +3 -1
- package/generated/models/resources-entity.ts +1 -1
- package/generated/models/revoke-credential-dto.ts +30 -0
- package/generated/models/revoke-credential-entity.ts +63 -0
- package/generated/models/revoke-credential400-response.ts +42 -0
- package/generated/models/revoke-credential409-response.ts +42 -0
- package/generated/models/revoke-receipt-entity.ts +42 -0
- package/generated/models/schema-entity.ts +57 -0
- package/generated/models/schema-list-entity.ts +39 -0
- package/generated/models/schema-query.ts +48 -0
- package/generated/models/schema-response-entity.ts +45 -0
- package/generated/models/schema-version-detail-entity.ts +72 -0
- package/generated/models/schema-version-list-entity.ts +39 -0
- package/generated/models/schema-version-response-entity.ts +54 -0
- package/generated/models/schema-version-summary-entity.ts +48 -0
- package/generated/models/subject-contact-entity.ts +7 -7
- package/generated/models/subject-issuer-entity.ts +69 -0
- package/generated/models/subject-query.ts +4 -4
- package/generated/models/test-event.ts +11 -15
- package/generated/models/user-create400-response.ts +42 -0
- package/generated/models/user-detail400-response.ts +42 -0
- package/generated/models/user-detail404-response.ts +42 -0
- package/generated/models/verification-method-entity.ts +48 -0
- package/generated/models/verify-allow-response-entity.ts +61 -0
- package/generated/models/verify-deny-response-entity.ts +79 -0
- package/generated/models/verify-evaluation-entity.ts +51 -0
- package/generated/models/verify-presentation-dto.ts +36 -0
- package/generated/models/verify-receipt-entity.ts +42 -0
- package/generated/models/w3-cverifiable-credential-credential-subject-mandate-action.ts +44 -0
- package/generated/models/w3-cverifiable-credential-credential-subject-mandate-constraint-constraint-schema.ts +44 -0
- package/generated/models/w3-cverifiable-credential-credential-subject-mandate-constraint.ts +41 -0
- package/generated/models/w3-cverifiable-credential-credential-subject-mandate-context.ts +32 -0
- package/generated/models/{mandate-data-type.ts → w3-cverifiable-credential-credential-subject-mandate-grantor.ts} +3 -16
- package/generated/models/w3-cverifiable-credential-credential-subject-mandate.ts +65 -0
- package/generated/models/w3-cverifiable-credential-credential-subject.ts +41 -0
- package/generated/models/w3-cverifiable-credential-evidences-inner.ts +42 -0
- package/generated/models/w3-cverifiable-credential-proofs-inner.ts +62 -0
- package/generated/models/w3-cverifiable-credential-valid-from.ts +24 -0
- package/generated/models/w3-cverifiable-credential-valid-until.ts +24 -0
- package/generated/models/w3-cverifiable-credential.ts +24 -25
- package/generated/models/webhook-call-event.ts +6 -12
- package/package.json +1 -1
- package/generated/models/credential-full-entity.ts +0 -82
- package/generated/models/get-credential-entity.ts +0 -48
- package/generated/models/identity-field-placement.ts +0 -73
- package/generated/models/identity-field-type.ts +0 -38
- package/generated/models/mandate-data-dto-type.ts +0 -73
- package/generated/models/mandate-data-dto.ts +0 -71
- package/generated/models/signature-placement-item-dto.ts +0 -72
- package/generated/models/signature-placement.ts +0 -56
- package/generated/models/subject-entity.ts +0 -48
- package/generated/models/w3-cproof.ts +0 -82
|
@@ -26,26 +26,26 @@ import type { GroupsEntity } from '../models';
|
|
|
26
26
|
// @ts-ignore
|
|
27
27
|
import type { ResourcesEntity } from '../models';
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* ApprovalApi - axios parameter creator
|
|
30
30
|
* @export
|
|
31
31
|
*/
|
|
32
|
-
export const
|
|
32
|
+
export const ApprovalApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
33
33
|
return {
|
|
34
34
|
/**
|
|
35
|
-
* Retrieve
|
|
36
|
-
* @summary Get
|
|
35
|
+
* Retrieve a paginated list of your approvals. Approvals can be documents, consents, forms.
|
|
36
|
+
* @summary Get Approvals
|
|
37
37
|
* @param {number} [pageIndex] Page number
|
|
38
38
|
* @param {number} [pageSize] Number of items per page
|
|
39
39
|
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
40
40
|
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
41
|
-
* @param {Array<
|
|
41
|
+
* @param {Array<ListTypesEnum>} [types] Filter by resource types. Can be a single value or array
|
|
42
42
|
* @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
|
|
43
43
|
* @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\'s date.
|
|
44
44
|
* @param {*} [options] Override http request option.
|
|
45
45
|
* @throws {RequiredError}
|
|
46
46
|
*/
|
|
47
|
-
|
|
48
|
-
const localVarPath = `/
|
|
47
|
+
list: async (pageIndex?: number, pageSize?: number, search?: string, active?: boolean, types?: Array<ListTypesEnum>, internalId?: string, aPIVersion?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
48
|
+
const localVarPath = `/approvals`;
|
|
49
49
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
50
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
51
51
|
let baseOptions;
|
|
@@ -96,20 +96,20 @@ export const ResourceApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
96
96
|
};
|
|
97
97
|
},
|
|
98
98
|
/**
|
|
99
|
-
* Retrieve a paginated list of
|
|
100
|
-
* @summary
|
|
99
|
+
* Retrieve a paginated list of your workflows, including their approvals. Workflows allow to pack approvals together and easily request them.
|
|
100
|
+
* @summary List Workflows
|
|
101
101
|
* @param {number} [pageIndex] Page number
|
|
102
102
|
* @param {number} [pageSize] Number of items per page
|
|
103
103
|
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
104
104
|
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
105
|
-
* @param {Array<
|
|
105
|
+
* @param {Array<WorkflowsTypesEnum>} [types] Filter by resource types. Can be a single value or array
|
|
106
106
|
* @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
|
|
107
107
|
* @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\'s date.
|
|
108
108
|
* @param {*} [options] Override http request option.
|
|
109
109
|
* @throws {RequiredError}
|
|
110
110
|
*/
|
|
111
|
-
|
|
112
|
-
const localVarPath = `/
|
|
111
|
+
workflows: async (pageIndex?: number, pageSize?: number, search?: string, active?: boolean, types?: Array<WorkflowsTypesEnum>, internalId?: string, aPIVersion?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
112
|
+
const localVarPath = `/approvals/workflow`;
|
|
113
113
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
114
114
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
115
115
|
let baseOptions;
|
|
@@ -163,156 +163,160 @@ export const ResourceApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
163
163
|
};
|
|
164
164
|
|
|
165
165
|
/**
|
|
166
|
-
*
|
|
166
|
+
* ApprovalApi - functional programming interface
|
|
167
167
|
* @export
|
|
168
168
|
*/
|
|
169
|
-
export const
|
|
170
|
-
const localVarAxiosParamCreator =
|
|
169
|
+
export const ApprovalApiFp = function(configuration?: Configuration) {
|
|
170
|
+
const localVarAxiosParamCreator = ApprovalApiAxiosParamCreator(configuration)
|
|
171
171
|
return {
|
|
172
172
|
/**
|
|
173
|
-
* Retrieve
|
|
174
|
-
* @summary Get
|
|
173
|
+
* Retrieve a paginated list of your approvals. Approvals can be documents, consents, forms.
|
|
174
|
+
* @summary Get Approvals
|
|
175
175
|
* @param {number} [pageIndex] Page number
|
|
176
176
|
* @param {number} [pageSize] Number of items per page
|
|
177
177
|
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
178
178
|
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
179
|
-
* @param {Array<
|
|
179
|
+
* @param {Array<ListTypesEnum>} [types] Filter by resource types. Can be a single value or array
|
|
180
180
|
* @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
|
|
181
181
|
* @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\'s date.
|
|
182
182
|
* @param {*} [options] Override http request option.
|
|
183
183
|
* @throws {RequiredError}
|
|
184
184
|
*/
|
|
185
|
-
async
|
|
186
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
185
|
+
async list(pageIndex?: number, pageSize?: number, search?: string, active?: boolean, types?: Array<ListTypesEnum>, internalId?: string, aPIVersion?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResourcesEntity>> {
|
|
186
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.list(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options);
|
|
187
187
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
188
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
188
|
+
const localVarOperationServerBasePath = operationServerMap['ApprovalApi.list']?.[localVarOperationServerIndex]?.url;
|
|
189
189
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
190
190
|
},
|
|
191
191
|
/**
|
|
192
|
-
* Retrieve a paginated list of
|
|
193
|
-
* @summary
|
|
192
|
+
* Retrieve a paginated list of your workflows, including their approvals. Workflows allow to pack approvals together and easily request them.
|
|
193
|
+
* @summary List Workflows
|
|
194
194
|
* @param {number} [pageIndex] Page number
|
|
195
195
|
* @param {number} [pageSize] Number of items per page
|
|
196
196
|
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
197
197
|
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
198
|
-
* @param {Array<
|
|
198
|
+
* @param {Array<WorkflowsTypesEnum>} [types] Filter by resource types. Can be a single value or array
|
|
199
199
|
* @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
|
|
200
200
|
* @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\'s date.
|
|
201
201
|
* @param {*} [options] Override http request option.
|
|
202
202
|
* @throws {RequiredError}
|
|
203
203
|
*/
|
|
204
|
-
async
|
|
205
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
204
|
+
async workflows(pageIndex?: number, pageSize?: number, search?: string, active?: boolean, types?: Array<WorkflowsTypesEnum>, internalId?: string, aPIVersion?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GroupsEntity>> {
|
|
205
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.workflows(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options);
|
|
206
206
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
207
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
207
|
+
const localVarOperationServerBasePath = operationServerMap['ApprovalApi.workflows']?.[localVarOperationServerIndex]?.url;
|
|
208
208
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
209
209
|
},
|
|
210
210
|
}
|
|
211
211
|
};
|
|
212
212
|
|
|
213
213
|
/**
|
|
214
|
-
*
|
|
214
|
+
* ApprovalApi - factory interface
|
|
215
215
|
* @export
|
|
216
216
|
*/
|
|
217
|
-
export const
|
|
218
|
-
const localVarFp =
|
|
217
|
+
export const ApprovalApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
218
|
+
const localVarFp = ApprovalApiFp(configuration)
|
|
219
219
|
return {
|
|
220
220
|
/**
|
|
221
|
-
* Retrieve
|
|
222
|
-
* @summary Get
|
|
221
|
+
* Retrieve a paginated list of your approvals. Approvals can be documents, consents, forms.
|
|
222
|
+
* @summary Get Approvals
|
|
223
223
|
* @param {number} [pageIndex] Page number
|
|
224
224
|
* @param {number} [pageSize] Number of items per page
|
|
225
225
|
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
226
226
|
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
227
|
-
* @param {Array<
|
|
227
|
+
* @param {Array<ListTypesEnum>} [types] Filter by resource types. Can be a single value or array
|
|
228
228
|
* @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
|
|
229
229
|
* @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\'s date.
|
|
230
230
|
* @param {*} [options] Override http request option.
|
|
231
231
|
* @throws {RequiredError}
|
|
232
232
|
*/
|
|
233
|
-
|
|
234
|
-
return localVarFp.
|
|
233
|
+
list(pageIndex?: number, pageSize?: number, search?: string, active?: boolean, types?: Array<ListTypesEnum>, internalId?: string, aPIVersion?: string, options?: RawAxiosRequestConfig): AxiosPromise<ResourcesEntity> {
|
|
234
|
+
return localVarFp.list(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options).then((request) => request(axios, basePath));
|
|
235
235
|
},
|
|
236
236
|
/**
|
|
237
|
-
* Retrieve a paginated list of
|
|
238
|
-
* @summary
|
|
237
|
+
* Retrieve a paginated list of your workflows, including their approvals. Workflows allow to pack approvals together and easily request them.
|
|
238
|
+
* @summary List Workflows
|
|
239
239
|
* @param {number} [pageIndex] Page number
|
|
240
240
|
* @param {number} [pageSize] Number of items per page
|
|
241
241
|
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
242
242
|
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
243
|
-
* @param {Array<
|
|
243
|
+
* @param {Array<WorkflowsTypesEnum>} [types] Filter by resource types. Can be a single value or array
|
|
244
244
|
* @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
|
|
245
245
|
* @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\'s date.
|
|
246
246
|
* @param {*} [options] Override http request option.
|
|
247
247
|
* @throws {RequiredError}
|
|
248
248
|
*/
|
|
249
|
-
|
|
250
|
-
return localVarFp.
|
|
249
|
+
workflows(pageIndex?: number, pageSize?: number, search?: string, active?: boolean, types?: Array<WorkflowsTypesEnum>, internalId?: string, aPIVersion?: string, options?: RawAxiosRequestConfig): AxiosPromise<GroupsEntity> {
|
|
250
|
+
return localVarFp.workflows(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options).then((request) => request(axios, basePath));
|
|
251
251
|
},
|
|
252
252
|
};
|
|
253
253
|
};
|
|
254
254
|
|
|
255
255
|
/**
|
|
256
|
-
*
|
|
256
|
+
* ApprovalApi - object-oriented interface
|
|
257
257
|
* @export
|
|
258
|
-
* @class
|
|
258
|
+
* @class ApprovalApi
|
|
259
259
|
* @extends {BaseAPI}
|
|
260
260
|
*/
|
|
261
|
-
export class
|
|
261
|
+
export class ApprovalApi extends BaseAPI {
|
|
262
262
|
/**
|
|
263
|
-
* Retrieve
|
|
264
|
-
* @summary Get
|
|
263
|
+
* Retrieve a paginated list of your approvals. Approvals can be documents, consents, forms.
|
|
264
|
+
* @summary Get Approvals
|
|
265
265
|
* @param {number} [pageIndex] Page number
|
|
266
266
|
* @param {number} [pageSize] Number of items per page
|
|
267
267
|
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
268
268
|
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
269
|
-
* @param {Array<
|
|
269
|
+
* @param {Array<ListTypesEnum>} [types] Filter by resource types. Can be a single value or array
|
|
270
270
|
* @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
|
|
271
271
|
* @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\'s date.
|
|
272
272
|
* @param {*} [options] Override http request option.
|
|
273
273
|
* @throws {RequiredError}
|
|
274
|
-
* @memberof
|
|
274
|
+
* @memberof ApprovalApi
|
|
275
275
|
*/
|
|
276
|
-
public
|
|
277
|
-
return
|
|
276
|
+
public list(pageIndex?: number, pageSize?: number, search?: string, active?: boolean, types?: Array<ListTypesEnum>, internalId?: string, aPIVersion?: string, options?: RawAxiosRequestConfig) {
|
|
277
|
+
return ApprovalApiFp(this.configuration).list(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options).then((request) => request(this.axios, this.basePath));
|
|
278
278
|
}
|
|
279
279
|
|
|
280
280
|
/**
|
|
281
|
-
* Retrieve a paginated list of
|
|
282
|
-
* @summary
|
|
281
|
+
* Retrieve a paginated list of your workflows, including their approvals. Workflows allow to pack approvals together and easily request them.
|
|
282
|
+
* @summary List Workflows
|
|
283
283
|
* @param {number} [pageIndex] Page number
|
|
284
284
|
* @param {number} [pageSize] Number of items per page
|
|
285
285
|
* @param {string} [search] Search query to filter by. Is case-insensitive and does not need to match the entire value.
|
|
286
286
|
* @param {boolean} [active] Filter by active status. Accepts true/false as string or boolean.
|
|
287
|
-
* @param {Array<
|
|
287
|
+
* @param {Array<WorkflowsTypesEnum>} [types] Filter by resource types. Can be a single value or array
|
|
288
288
|
* @param {string} [internalId] Identifier to help you identify the resource in your own system. We recommend using a unique value.
|
|
289
289
|
* @param {string} [aPIVersion] Pin responses to a specific API version (YYYY-MM-DD). When omitted, defaults to the version stored in your issuer config or today\'s date.
|
|
290
290
|
* @param {*} [options] Override http request option.
|
|
291
291
|
* @throws {RequiredError}
|
|
292
|
-
* @memberof
|
|
292
|
+
* @memberof ApprovalApi
|
|
293
293
|
*/
|
|
294
|
-
public
|
|
295
|
-
return
|
|
294
|
+
public workflows(pageIndex?: number, pageSize?: number, search?: string, active?: boolean, types?: Array<WorkflowsTypesEnum>, internalId?: string, aPIVersion?: string, options?: RawAxiosRequestConfig) {
|
|
295
|
+
return ApprovalApiFp(this.configuration).workflows(pageIndex, pageSize, search, active, types, internalId, aPIVersion, options).then((request) => request(this.axios, this.basePath));
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
298
|
|
|
299
299
|
/**
|
|
300
300
|
* @export
|
|
301
301
|
*/
|
|
302
|
-
export const
|
|
302
|
+
export const ListTypesEnum = {
|
|
303
303
|
Consent: 'CONSENT',
|
|
304
304
|
Form: 'FORM',
|
|
305
305
|
Document: 'DOCUMENT',
|
|
306
|
-
Json: 'JSON'
|
|
306
|
+
Json: 'JSON',
|
|
307
|
+
Payment: 'PAYMENT',
|
|
308
|
+
Policy: 'POLICY'
|
|
307
309
|
} as const;
|
|
308
|
-
export type
|
|
310
|
+
export type ListTypesEnum = typeof ListTypesEnum[keyof typeof ListTypesEnum];
|
|
309
311
|
/**
|
|
310
312
|
* @export
|
|
311
313
|
*/
|
|
312
|
-
export const
|
|
314
|
+
export const WorkflowsTypesEnum = {
|
|
313
315
|
Consent: 'CONSENT',
|
|
314
316
|
Form: 'FORM',
|
|
315
317
|
Document: 'DOCUMENT',
|
|
316
|
-
Json: 'JSON'
|
|
318
|
+
Json: 'JSON',
|
|
319
|
+
Payment: 'PAYMENT',
|
|
320
|
+
Policy: 'POLICY'
|
|
317
321
|
} as const;
|
|
318
|
-
export type
|
|
322
|
+
export type WorkflowsTypesEnum = typeof WorkflowsTypesEnum[keyof typeof WorkflowsTypesEnum];
|