@rippling/rippling-sdk 0.2.0-alpha.25 → 0.2.0-alpha.26
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/LICENSE +1 -1
- package/client.d.mts +33 -11
- package/client.d.mts.map +1 -1
- package/client.d.ts +33 -11
- package/client.d.ts.map +1 -1
- package/client.js +21 -0
- package/client.js.map +1 -1
- package/client.mjs +21 -0
- package/client.mjs.map +1 -1
- package/functions.d.mts +4 -0
- package/functions.d.mts.map +1 -1
- package/functions.d.ts +4 -0
- package/functions.d.ts.map +1 -1
- package/functions.js +13 -1
- package/functions.js.map +1 -1
- package/functions.mjs +11 -0
- package/functions.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/compensation-bands-details.d.mts +95 -0
- package/resources/compensation-bands-details.d.mts.map +1 -0
- package/resources/compensation-bands-details.d.ts +95 -0
- package/resources/compensation-bands-details.d.ts.map +1 -0
- package/resources/compensation-bands-details.js +29 -0
- package/resources/compensation-bands-details.js.map +1 -0
- package/resources/compensation-bands-details.mjs +25 -0
- package/resources/compensation-bands-details.mjs.map +1 -0
- package/resources/custom-settings.d.mts +270 -0
- package/resources/custom-settings.d.mts.map +1 -0
- package/resources/custom-settings.d.ts +270 -0
- package/resources/custom-settings.d.ts.map +1 -0
- package/resources/custom-settings.js +51 -0
- package/resources/custom-settings.js.map +1 -0
- package/resources/custom-settings.mjs +47 -0
- package/resources/custom-settings.mjs.map +1 -0
- package/resources/departments.d.mts +37 -1
- package/resources/departments.d.mts.map +1 -1
- package/resources/departments.d.ts +37 -1
- package/resources/departments.d.ts.map +1 -1
- package/resources/departments.js +12 -0
- package/resources/departments.js.map +1 -1
- package/resources/departments.mjs +12 -0
- package/resources/departments.mjs.map +1 -1
- package/resources/draft-hires.d.mts +27 -0
- package/resources/draft-hires.d.mts.map +1 -1
- package/resources/draft-hires.d.ts +27 -0
- package/resources/draft-hires.d.ts.map +1 -1
- package/resources/functions/executions.d.mts +6 -82
- package/resources/functions/executions.d.mts.map +1 -1
- package/resources/functions/executions.d.ts +6 -82
- package/resources/functions/executions.d.ts.map +1 -1
- package/resources/functions/executions.js.map +1 -1
- package/resources/functions/executions.mjs.map +1 -1
- package/resources/functions/functions.d.mts +2 -2
- package/resources/functions/functions.d.mts.map +1 -1
- package/resources/functions/functions.d.ts +2 -2
- package/resources/functions/functions.d.ts.map +1 -1
- package/resources/functions/functions.js.map +1 -1
- package/resources/functions/functions.mjs.map +1 -1
- package/resources/functions/index.d.mts +1 -1
- package/resources/functions/index.d.mts.map +1 -1
- package/resources/functions/index.d.ts +1 -1
- package/resources/functions/index.d.ts.map +1 -1
- package/resources/functions/index.js.map +1 -1
- package/resources/functions/index.mjs.map +1 -1
- package/resources/index.d.mts +12 -5
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +12 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +15 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +7 -0
- package/resources/index.mjs.map +1 -1
- package/resources/job-assignments.d.mts +70 -6
- package/resources/job-assignments.d.mts.map +1 -1
- package/resources/job-assignments.d.ts +70 -6
- package/resources/job-assignments.d.ts.map +1 -1
- package/resources/job-assignments.js +22 -0
- package/resources/job-assignments.js.map +1 -1
- package/resources/job-assignments.mjs +22 -0
- package/resources/job-assignments.mjs.map +1 -1
- package/resources/job-codes.d.mts +47 -1
- package/resources/job-codes.d.mts.map +1 -1
- package/resources/job-codes.d.ts +47 -1
- package/resources/job-codes.d.ts.map +1 -1
- package/resources/job-dimensions.d.mts +20 -0
- package/resources/job-dimensions.d.mts.map +1 -1
- package/resources/job-dimensions.d.ts +20 -0
- package/resources/job-dimensions.d.ts.map +1 -1
- package/resources/job-requisitions-write.d.mts +257 -0
- package/resources/job-requisitions-write.d.mts.map +1 -0
- package/resources/job-requisitions-write.d.ts +257 -0
- package/resources/job-requisitions-write.d.ts.map +1 -0
- package/resources/job-requisitions-write.js +15 -0
- package/resources/job-requisitions-write.js.map +1 -0
- package/resources/job-requisitions-write.mjs +11 -0
- package/resources/job-requisitions-write.mjs.map +1 -0
- package/resources/leave-accruals.d.mts +112 -6
- package/resources/leave-accruals.d.mts.map +1 -1
- package/resources/leave-accruals.d.ts +112 -6
- package/resources/leave-accruals.d.ts.map +1 -1
- package/resources/leave-accruals.js +19 -3
- package/resources/leave-accruals.js.map +1 -1
- package/resources/leave-accruals.mjs +19 -3
- package/resources/leave-accruals.mjs.map +1 -1
- package/resources/report-runs.d.mts +149 -0
- package/resources/report-runs.d.mts.map +1 -0
- package/resources/report-runs.d.ts +149 -0
- package/resources/report-runs.d.ts.map +1 -0
- package/resources/report-runs.js +22 -0
- package/resources/report-runs.js.map +1 -0
- package/resources/report-runs.mjs +18 -0
- package/resources/report-runs.mjs.map +1 -0
- package/resources/shared.d.mts +35 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +35 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/shift-assignments.d.mts +296 -0
- package/resources/shift-assignments.d.mts.map +1 -0
- package/resources/shift-assignments.d.ts +296 -0
- package/resources/shift-assignments.d.ts.map +1 -0
- package/resources/shift-assignments.js +25 -0
- package/resources/shift-assignments.js.map +1 -0
- package/resources/shift-assignments.mjs +21 -0
- package/resources/shift-assignments.mjs.map +1 -0
- package/resources/shiftassignments.d.mts +56 -4
- package/resources/shiftassignments.d.mts.map +1 -1
- package/resources/shiftassignments.d.ts +56 -4
- package/resources/shiftassignments.d.ts.map +1 -1
- package/resources/supergroups/exclusion-members.d.mts +3 -3
- package/resources/supergroups/exclusion-members.d.mts.map +1 -1
- package/resources/supergroups/exclusion-members.d.ts +3 -3
- package/resources/supergroups/exclusion-members.d.ts.map +1 -1
- package/resources/supergroups/exclusion-members.js.map +1 -1
- package/resources/supergroups/exclusion-members.mjs.map +1 -1
- package/resources/supergroups/inclusion-members.d.mts +3 -3
- package/resources/supergroups/inclusion-members.d.mts.map +1 -1
- package/resources/supergroups/inclusion-members.d.ts +3 -3
- package/resources/supergroups/inclusion-members.d.ts.map +1 -1
- package/resources/supergroups/inclusion-members.js.map +1 -1
- package/resources/supergroups/inclusion-members.mjs.map +1 -1
- package/resources/supergroups/index.d.mts +1 -1
- package/resources/supergroups/index.d.mts.map +1 -1
- package/resources/supergroups/index.d.ts +1 -1
- package/resources/supergroups/index.d.ts.map +1 -1
- package/resources/supergroups/index.js.map +1 -1
- package/resources/supergroups/index.mjs.map +1 -1
- package/resources/supergroups/members.d.mts +6 -37
- package/resources/supergroups/members.d.mts.map +1 -1
- package/resources/supergroups/members.d.ts +6 -37
- package/resources/supergroups/members.d.ts.map +1 -1
- package/resources/supergroups/members.js.map +1 -1
- package/resources/supergroups/members.mjs.map +1 -1
- package/resources/supergroups/supergroups.d.mts +2 -2
- package/resources/supergroups/supergroups.d.mts.map +1 -1
- package/resources/supergroups/supergroups.d.ts +2 -2
- package/resources/supergroups/supergroups.d.ts.map +1 -1
- package/resources/supergroups/supergroups.js.map +1 -1
- package/resources/supergroups/supergroups.mjs.map +1 -1
- package/resources/titles.d.mts +126 -0
- package/resources/titles.d.mts.map +1 -0
- package/resources/titles.d.ts +126 -0
- package/resources/titles.d.ts.map +1 -0
- package/resources/titles.js +48 -0
- package/resources/titles.js.map +1 -0
- package/resources/titles.mjs +44 -0
- package/resources/titles.mjs.map +1 -0
- package/resources/unassigned-shifts.d.mts +334 -0
- package/resources/unassigned-shifts.d.mts.map +1 -0
- package/resources/unassigned-shifts.d.ts +334 -0
- package/resources/unassigned-shifts.d.ts.map +1 -0
- package/resources/unassigned-shifts.js +42 -0
- package/resources/unassigned-shifts.js.map +1 -0
- package/resources/unassigned-shifts.mjs +38 -0
- package/resources/unassigned-shifts.mjs.map +1 -0
- package/resources/unassignedshifts.d.mts +382 -1
- package/resources/unassignedshifts.d.mts.map +1 -1
- package/resources/unassignedshifts.d.ts +382 -1
- package/resources/unassignedshifts.d.ts.map +1 -1
- package/resources/unassignedshifts.js +6 -0
- package/resources/unassignedshifts.js.map +1 -1
- package/resources/unassignedshifts.mjs +6 -0
- package/resources/unassignedshifts.mjs.map +1 -1
- package/resources/work-locations.d.mts +95 -1
- package/resources/work-locations.d.mts.map +1 -1
- package/resources/work-locations.d.ts +95 -1
- package/resources/work-locations.d.ts.map +1 -1
- package/resources/work-locations.js +12 -0
- package/resources/work-locations.js.map +1 -1
- package/resources/work-locations.mjs +12 -0
- package/resources/work-locations.mjs.map +1 -1
- package/src/client.ts +153 -3
- package/src/functions.ts +14 -0
- package/src/resources/compensation-bands-details.ts +140 -0
- package/src/resources/custom-settings.ts +371 -0
- package/src/resources/departments.ts +50 -0
- package/src/resources/draft-hires.ts +32 -0
- package/src/resources/functions/executions.ts +8 -104
- package/src/resources/functions/functions.ts +4 -8
- package/src/resources/functions/index.ts +2 -4
- package/src/resources/index.ts +66 -2
- package/src/resources/job-assignments.ts +95 -6
- package/src/resources/job-codes.ts +56 -1
- package/src/resources/job-dimensions.ts +24 -0
- package/src/resources/job-requisitions-write.ts +327 -0
- package/src/resources/leave-accruals.ts +229 -12
- package/src/resources/report-runs.ts +186 -0
- package/src/resources/shared.ts +44 -0
- package/src/resources/shift-assignments.ts +362 -0
- package/src/resources/shiftassignments.ts +70 -5
- package/src/resources/supergroups/exclusion-members.ts +4 -4
- package/src/resources/supergroups/inclusion-members.ts +4 -4
- package/src/resources/supergroups/index.ts +1 -1
- package/src/resources/supergroups/members.ts +7 -49
- package/src/resources/supergroups/supergroups.ts +2 -7
- package/src/resources/titles.ts +181 -0
- package/src/resources/unassigned-shifts.ts +415 -0
- package/src/resources/unassignedshifts.ts +467 -0
- package/src/resources/work-locations.ts +118 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leave-accruals.d.ts","sourceRoot":"","sources":["../src/resources/leave-accruals.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;O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C;IAEzB;;OAEG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAEjC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,0BAA0B;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -3,13 +3,23 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.LeaveAccruals = void 0;
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../core/pagination.js");
|
|
6
7
|
const path_1 = require("../internal/utils/path.js");
|
|
7
8
|
class LeaveAccruals extends resource_1.APIResource {
|
|
8
9
|
/**
|
|
9
|
-
*
|
|
10
|
+
* A List of leave accruals
|
|
11
|
+
*
|
|
12
|
+
* - Requires: `API Tier 2`
|
|
13
|
+
* - Filterable fields: `worker_id`, `leave_type_id`, `accrual_date`
|
|
14
|
+
* - Expandable fields: `worker`, `grantor`
|
|
15
|
+
* - Sortable fields: `id`, `created_at`, `updated_at`, `accrual_date`,
|
|
16
|
+
* `expiration_date`
|
|
10
17
|
*/
|
|
11
|
-
|
|
12
|
-
return this._client.
|
|
18
|
+
list(query = {}, options) {
|
|
19
|
+
return this._client.getAPIList('/leave-accruals', (pagination_1.PageCursorURL), {
|
|
20
|
+
query,
|
|
21
|
+
...options,
|
|
22
|
+
});
|
|
13
23
|
}
|
|
14
24
|
/**
|
|
15
25
|
* Create a new leave accrual
|
|
@@ -17,6 +27,12 @@ class LeaveAccruals extends resource_1.APIResource {
|
|
|
17
27
|
create(body, options) {
|
|
18
28
|
return this._client.post('/leave-accruals', { body, ...options });
|
|
19
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* Retrieve a specific leave accrual
|
|
32
|
+
*/
|
|
33
|
+
retrieve(id, query = {}, options) {
|
|
34
|
+
return this._client.get((0, path_1.path) `/leave-accruals/${id}`, { query, ...options });
|
|
35
|
+
}
|
|
20
36
|
}
|
|
21
37
|
exports.LeaveAccruals = LeaveAccruals;
|
|
22
38
|
//# sourceMappingURL=leave-accruals.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leave-accruals.js","sourceRoot":"","sources":["../src/resources/leave-accruals.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;
|
|
1
|
+
{"version":3,"file":"leave-accruals.js","sourceRoot":"","sources":["../src/resources/leave-accruals.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,sDAAgE;AAEhE,oDAA8C;AAE9C,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;OAQG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,iBAAiB,EAAE,CAAA,0BAAuC,CAAA,EAAE;YACzF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,mBAAmB,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;CACF;AArCD,sCAqCC"}
|
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { PageCursorURL } from "../core/pagination.mjs";
|
|
3
4
|
import { path } from "../internal/utils/path.mjs";
|
|
4
5
|
export class LeaveAccruals extends APIResource {
|
|
5
6
|
/**
|
|
6
|
-
*
|
|
7
|
+
* A List of leave accruals
|
|
8
|
+
*
|
|
9
|
+
* - Requires: `API Tier 2`
|
|
10
|
+
* - Filterable fields: `worker_id`, `leave_type_id`, `accrual_date`
|
|
11
|
+
* - Expandable fields: `worker`, `grantor`
|
|
12
|
+
* - Sortable fields: `id`, `created_at`, `updated_at`, `accrual_date`,
|
|
13
|
+
* `expiration_date`
|
|
7
14
|
*/
|
|
8
|
-
|
|
9
|
-
return this._client.
|
|
15
|
+
list(query = {}, options) {
|
|
16
|
+
return this._client.getAPIList('/leave-accruals', (PageCursorURL), {
|
|
17
|
+
query,
|
|
18
|
+
...options,
|
|
19
|
+
});
|
|
10
20
|
}
|
|
11
21
|
/**
|
|
12
22
|
* Create a new leave accrual
|
|
@@ -14,5 +24,11 @@ export class LeaveAccruals extends APIResource {
|
|
|
14
24
|
create(body, options) {
|
|
15
25
|
return this._client.post('/leave-accruals', { body, ...options });
|
|
16
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* Retrieve a specific leave accrual
|
|
29
|
+
*/
|
|
30
|
+
retrieve(id, query = {}, options) {
|
|
31
|
+
return this._client.get(path `/leave-accruals/${id}`, { query, ...options });
|
|
32
|
+
}
|
|
17
33
|
}
|
|
18
34
|
//# sourceMappingURL=leave-accruals.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leave-accruals.mjs","sourceRoot":"","sources":["../src/resources/leave-accruals.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"leave-accruals.mjs","sourceRoot":"","sources":["../src/resources/leave-accruals.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,aAAa,EAAe;OAE9B,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;OAQG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,iBAAiB,EAAE,CAAA,aAAuC,CAAA,EAAE;YACzF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,mBAAmB,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;CACF"}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import * as BusinessPartnersAPI from "./business-partners.mjs";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
|
+
export declare class ReportRuns extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Trigger a new report run
|
|
8
|
+
*/
|
|
9
|
+
create(body: ReportRunCreateParams, options?: RequestOptions): APIPromise<ReportRunCreateResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Retrieve the status and data for a specific report run
|
|
12
|
+
*/
|
|
13
|
+
retrieve(runID: string, options?: RequestOptions): APIPromise<ReportRunRetrieveResponse>;
|
|
14
|
+
}
|
|
15
|
+
export interface ReportRunCreateResponse {
|
|
16
|
+
/**
|
|
17
|
+
* The ID of this run
|
|
18
|
+
*/
|
|
19
|
+
id: string;
|
|
20
|
+
/**
|
|
21
|
+
* The ID of the report associated with this run
|
|
22
|
+
*/
|
|
23
|
+
report_id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Report run status
|
|
26
|
+
*/
|
|
27
|
+
status: 'IN_PROGRESS' | 'SUCCESS' | 'FAILURE';
|
|
28
|
+
/**
|
|
29
|
+
* Report data, available once the run is complete
|
|
30
|
+
*/
|
|
31
|
+
result?: ReportRunCreateResponse.Result;
|
|
32
|
+
}
|
|
33
|
+
export declare namespace ReportRunCreateResponse {
|
|
34
|
+
/**
|
|
35
|
+
* Report data, available once the run is complete
|
|
36
|
+
*/
|
|
37
|
+
interface Result {
|
|
38
|
+
/**
|
|
39
|
+
* The expiry time of the execution
|
|
40
|
+
*/
|
|
41
|
+
expires_at: string;
|
|
42
|
+
/**
|
|
43
|
+
* The presigned file url
|
|
44
|
+
*/
|
|
45
|
+
file_url: string;
|
|
46
|
+
/**
|
|
47
|
+
* The type of the output file
|
|
48
|
+
*/
|
|
49
|
+
output_type: 'JSON' | 'CSV';
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Meta information for the response.
|
|
54
|
+
*/
|
|
55
|
+
export interface ReportRunRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
56
|
+
/**
|
|
57
|
+
* The ID of this run
|
|
58
|
+
*/
|
|
59
|
+
id: string;
|
|
60
|
+
/**
|
|
61
|
+
* The ID of the report associated with this run
|
|
62
|
+
*/
|
|
63
|
+
report_id: string;
|
|
64
|
+
/**
|
|
65
|
+
* Report run status
|
|
66
|
+
*/
|
|
67
|
+
status: 'IN_PROGRESS' | 'SUCCESS' | 'FAILURE';
|
|
68
|
+
/**
|
|
69
|
+
* Report data, available once the run is complete
|
|
70
|
+
*/
|
|
71
|
+
result?: ReportRunRetrieveResponse.Result;
|
|
72
|
+
}
|
|
73
|
+
export declare namespace ReportRunRetrieveResponse {
|
|
74
|
+
/**
|
|
75
|
+
* Report data, available once the run is complete
|
|
76
|
+
*/
|
|
77
|
+
interface Result {
|
|
78
|
+
/**
|
|
79
|
+
* The expiry time of the execution
|
|
80
|
+
*/
|
|
81
|
+
expires_at: string;
|
|
82
|
+
/**
|
|
83
|
+
* The presigned file url
|
|
84
|
+
*/
|
|
85
|
+
file_url: string;
|
|
86
|
+
/**
|
|
87
|
+
* The type of the output file
|
|
88
|
+
*/
|
|
89
|
+
output_type: 'JSON' | 'CSV';
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
export interface ReportRunCreateParams {
|
|
93
|
+
/**
|
|
94
|
+
* Whether to include object IDs in the report output
|
|
95
|
+
*/
|
|
96
|
+
include_object_ids: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Whether to include total row count in the report output
|
|
99
|
+
*/
|
|
100
|
+
include_total_rows: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Output format for the report data
|
|
103
|
+
*/
|
|
104
|
+
output_type: 'JSON' | 'CSV';
|
|
105
|
+
/**
|
|
106
|
+
* The ID of the report to run
|
|
107
|
+
*/
|
|
108
|
+
report_id: string;
|
|
109
|
+
/**
|
|
110
|
+
* Formatting options for currency fields
|
|
111
|
+
*/
|
|
112
|
+
format_currency_fields?: ReportRunCreateParams.FormatCurrencyFields | null;
|
|
113
|
+
/**
|
|
114
|
+
* Formatting options for date fields
|
|
115
|
+
*/
|
|
116
|
+
format_date_fields?: ReportRunCreateParams.FormatDateFields | null;
|
|
117
|
+
}
|
|
118
|
+
export declare namespace ReportRunCreateParams {
|
|
119
|
+
/**
|
|
120
|
+
* Formatting options for currency fields
|
|
121
|
+
*/
|
|
122
|
+
interface FormatCurrencyFields {
|
|
123
|
+
/**
|
|
124
|
+
* Currency column format for currency fields
|
|
125
|
+
*/
|
|
126
|
+
columns: 'TYPE_AND_AMOUNT' | 'VALUE_ONLY';
|
|
127
|
+
/**
|
|
128
|
+
* Currency type (e.g., 'USD')
|
|
129
|
+
*/
|
|
130
|
+
currency_type?: string | null;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Formatting options for date fields
|
|
134
|
+
*/
|
|
135
|
+
interface FormatDateFields {
|
|
136
|
+
/**
|
|
137
|
+
* Date format for date fields in the report output
|
|
138
|
+
*/
|
|
139
|
+
date_format: 'ISO_8601' | 'APPLY_VISUALIZATION_SETTINGS';
|
|
140
|
+
/**
|
|
141
|
+
* Timezone for datetime fields (e.g., 'America/Los_Angeles')
|
|
142
|
+
*/
|
|
143
|
+
datetime_timezone?: string | null;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
export declare namespace ReportRuns {
|
|
147
|
+
export { type ReportRunCreateResponse as ReportRunCreateResponse, type ReportRunRetrieveResponse as ReportRunRetrieveResponse, type ReportRunCreateParams as ReportRunCreateParams, };
|
|
148
|
+
}
|
|
149
|
+
//# sourceMappingURL=report-runs.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"report-runs.d.mts","sourceRoot":"","sources":["../src/resources/report-runs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAIlG;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,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AAsB,CAAC,EAAE,qBAAqB,CAAC,oBAAoB,GAAG,IAAI,CAAC;IAE3E;;OAEG;IACH,kBAAkB,CAAC,EAAE,qBAAqB,CAAC,gBAAgB,GAAG,IAAI,CAAC;CACpE;AAED,yBAAiB,qBAAqB,CAAC;IACrC;;OAEG;IACH,UAAiB,oBAAoB;QACnC;;WAEG;QACH,OAAO,EAAE,iBAAiB,GAAG,YAAY,CAAC;QAE1C;;WAEG;QACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC/B;IAED;;OAEG;IACH,UAAiB,gBAAgB;QAC/B;;WAEG;QACH,WAAW,EAAE,UAAU,GAAG,8BAA8B,CAAC;QAEzD;;WAEG;QACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACnC;CACF;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import * as BusinessPartnersAPI from "./business-partners.js";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
5
|
+
export declare class ReportRuns extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Trigger a new report run
|
|
8
|
+
*/
|
|
9
|
+
create(body: ReportRunCreateParams, options?: RequestOptions): APIPromise<ReportRunCreateResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Retrieve the status and data for a specific report run
|
|
12
|
+
*/
|
|
13
|
+
retrieve(runID: string, options?: RequestOptions): APIPromise<ReportRunRetrieveResponse>;
|
|
14
|
+
}
|
|
15
|
+
export interface ReportRunCreateResponse {
|
|
16
|
+
/**
|
|
17
|
+
* The ID of this run
|
|
18
|
+
*/
|
|
19
|
+
id: string;
|
|
20
|
+
/**
|
|
21
|
+
* The ID of the report associated with this run
|
|
22
|
+
*/
|
|
23
|
+
report_id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Report run status
|
|
26
|
+
*/
|
|
27
|
+
status: 'IN_PROGRESS' | 'SUCCESS' | 'FAILURE';
|
|
28
|
+
/**
|
|
29
|
+
* Report data, available once the run is complete
|
|
30
|
+
*/
|
|
31
|
+
result?: ReportRunCreateResponse.Result;
|
|
32
|
+
}
|
|
33
|
+
export declare namespace ReportRunCreateResponse {
|
|
34
|
+
/**
|
|
35
|
+
* Report data, available once the run is complete
|
|
36
|
+
*/
|
|
37
|
+
interface Result {
|
|
38
|
+
/**
|
|
39
|
+
* The expiry time of the execution
|
|
40
|
+
*/
|
|
41
|
+
expires_at: string;
|
|
42
|
+
/**
|
|
43
|
+
* The presigned file url
|
|
44
|
+
*/
|
|
45
|
+
file_url: string;
|
|
46
|
+
/**
|
|
47
|
+
* The type of the output file
|
|
48
|
+
*/
|
|
49
|
+
output_type: 'JSON' | 'CSV';
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Meta information for the response.
|
|
54
|
+
*/
|
|
55
|
+
export interface ReportRunRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
56
|
+
/**
|
|
57
|
+
* The ID of this run
|
|
58
|
+
*/
|
|
59
|
+
id: string;
|
|
60
|
+
/**
|
|
61
|
+
* The ID of the report associated with this run
|
|
62
|
+
*/
|
|
63
|
+
report_id: string;
|
|
64
|
+
/**
|
|
65
|
+
* Report run status
|
|
66
|
+
*/
|
|
67
|
+
status: 'IN_PROGRESS' | 'SUCCESS' | 'FAILURE';
|
|
68
|
+
/**
|
|
69
|
+
* Report data, available once the run is complete
|
|
70
|
+
*/
|
|
71
|
+
result?: ReportRunRetrieveResponse.Result;
|
|
72
|
+
}
|
|
73
|
+
export declare namespace ReportRunRetrieveResponse {
|
|
74
|
+
/**
|
|
75
|
+
* Report data, available once the run is complete
|
|
76
|
+
*/
|
|
77
|
+
interface Result {
|
|
78
|
+
/**
|
|
79
|
+
* The expiry time of the execution
|
|
80
|
+
*/
|
|
81
|
+
expires_at: string;
|
|
82
|
+
/**
|
|
83
|
+
* The presigned file url
|
|
84
|
+
*/
|
|
85
|
+
file_url: string;
|
|
86
|
+
/**
|
|
87
|
+
* The type of the output file
|
|
88
|
+
*/
|
|
89
|
+
output_type: 'JSON' | 'CSV';
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
export interface ReportRunCreateParams {
|
|
93
|
+
/**
|
|
94
|
+
* Whether to include object IDs in the report output
|
|
95
|
+
*/
|
|
96
|
+
include_object_ids: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Whether to include total row count in the report output
|
|
99
|
+
*/
|
|
100
|
+
include_total_rows: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Output format for the report data
|
|
103
|
+
*/
|
|
104
|
+
output_type: 'JSON' | 'CSV';
|
|
105
|
+
/**
|
|
106
|
+
* The ID of the report to run
|
|
107
|
+
*/
|
|
108
|
+
report_id: string;
|
|
109
|
+
/**
|
|
110
|
+
* Formatting options for currency fields
|
|
111
|
+
*/
|
|
112
|
+
format_currency_fields?: ReportRunCreateParams.FormatCurrencyFields | null;
|
|
113
|
+
/**
|
|
114
|
+
* Formatting options for date fields
|
|
115
|
+
*/
|
|
116
|
+
format_date_fields?: ReportRunCreateParams.FormatDateFields | null;
|
|
117
|
+
}
|
|
118
|
+
export declare namespace ReportRunCreateParams {
|
|
119
|
+
/**
|
|
120
|
+
* Formatting options for currency fields
|
|
121
|
+
*/
|
|
122
|
+
interface FormatCurrencyFields {
|
|
123
|
+
/**
|
|
124
|
+
* Currency column format for currency fields
|
|
125
|
+
*/
|
|
126
|
+
columns: 'TYPE_AND_AMOUNT' | 'VALUE_ONLY';
|
|
127
|
+
/**
|
|
128
|
+
* Currency type (e.g., 'USD')
|
|
129
|
+
*/
|
|
130
|
+
currency_type?: string | null;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Formatting options for date fields
|
|
134
|
+
*/
|
|
135
|
+
interface FormatDateFields {
|
|
136
|
+
/**
|
|
137
|
+
* Date format for date fields in the report output
|
|
138
|
+
*/
|
|
139
|
+
date_format: 'ISO_8601' | 'APPLY_VISUALIZATION_SETTINGS';
|
|
140
|
+
/**
|
|
141
|
+
* Timezone for datetime fields (e.g., 'America/Los_Angeles')
|
|
142
|
+
*/
|
|
143
|
+
datetime_timezone?: string | null;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
export declare namespace ReportRuns {
|
|
147
|
+
export { type ReportRunCreateResponse as ReportRunCreateResponse, type ReportRunRetrieveResponse as ReportRunRetrieveResponse, type ReportRunCreateParams as ReportRunCreateParams, };
|
|
148
|
+
}
|
|
149
|
+
//# sourceMappingURL=report-runs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"report-runs.d.ts","sourceRoot":"","sources":["../src/resources/report-runs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAIlG;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;CAGzF;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,EAAE,aAAa,GAAG,SAAS,GAAG,SAAS,CAAC;IAE9C;;OAEG;IACH,MAAM,CAAC,EAAE,uBAAuB,CAAC,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1C;;WAEG;QACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC/B;IAED;;OAEG;IACH,UAAiB,gBAAgB;QAC/B;;WAEG;QACH,WAAW,EAAE,UAAU,GAAG,8BAA8B,CAAC;QAEzD;;WAEG;QACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACnC;CACF;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ReportRuns = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const path_1 = require("../internal/utils/path.js");
|
|
7
|
+
class ReportRuns extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Trigger a new report run
|
|
10
|
+
*/
|
|
11
|
+
create(body, options) {
|
|
12
|
+
return this._client.post('/report-runs', { body, ...options });
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Retrieve the status and data for a specific report run
|
|
16
|
+
*/
|
|
17
|
+
retrieve(runID, options) {
|
|
18
|
+
return this._client.get((0, path_1.path) `/report-runs/${runID}`, options);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.ReportRuns = ReportRuns;
|
|
22
|
+
//# sourceMappingURL=report-runs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"report-runs.js","sourceRoot":"","sources":["../src/resources/report-runs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAA8C;AAE9C,MAAa,UAAW,SAAQ,sBAAW;IACzC;;OAEG;IACH,MAAM,CAAC,IAA2B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,KAAa,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;CACF;AAdD,gCAcC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { path } from "../internal/utils/path.mjs";
|
|
4
|
+
export class ReportRuns extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Trigger a new report run
|
|
7
|
+
*/
|
|
8
|
+
create(body, options) {
|
|
9
|
+
return this._client.post('/report-runs', { body, ...options });
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Retrieve the status and data for a specific report run
|
|
13
|
+
*/
|
|
14
|
+
retrieve(runID, options) {
|
|
15
|
+
return this._client.get(path `/report-runs/${runID}`, options);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=report-runs.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"report-runs.mjs","sourceRoot":"","sources":["../src/resources/report-runs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,MAAM,CAAC,IAA2B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,KAAa,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gBAAgB,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;CACF"}
|
package/resources/shared.d.mts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as WorkersAPI from "./workers.mjs";
|
|
2
|
+
import { PageCursorURL } from "../core/pagination.mjs";
|
|
1
3
|
export interface Address {
|
|
2
4
|
/**
|
|
3
5
|
* The country component, pursuant to SCIM RFC 7643 4.1.2.
|
|
@@ -34,6 +36,38 @@ export interface Address {
|
|
|
34
36
|
* The country component, pursuant to SCIM RFC 7643 4.1.2.
|
|
35
37
|
*/
|
|
36
38
|
export type CountryCode = 'AF' | 'AX' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BQ' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'CV' | 'KH' | 'CM' | 'CA' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'CI' | 'HR' | 'CW' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'SZ' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GG' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IQ' | 'IE' | 'IM' | 'IL' | 'IT' | 'JM' | 'JP' | 'JE' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KR' | 'XK' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'AN' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'MK' | 'MP' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RO' | 'RU' | 'RW' | 'RE' | 'BL' | 'SH' | 'KN' | 'LC' | 'MF' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'SX' | 'SY' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'SS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SE' | 'CH' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'US' | 'UM' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW';
|
|
39
|
+
export interface GroupMember {
|
|
40
|
+
/**
|
|
41
|
+
* Identifier field
|
|
42
|
+
*/
|
|
43
|
+
id: string;
|
|
44
|
+
/**
|
|
45
|
+
* Record creation date
|
|
46
|
+
*/
|
|
47
|
+
created_at: string;
|
|
48
|
+
/**
|
|
49
|
+
* Record update date
|
|
50
|
+
*/
|
|
51
|
+
updated_at: string;
|
|
52
|
+
/**
|
|
53
|
+
* The group member's full name.
|
|
54
|
+
*/
|
|
55
|
+
full_name?: string;
|
|
56
|
+
/**
|
|
57
|
+
* The group member's associated work email address.
|
|
58
|
+
*/
|
|
59
|
+
work_email?: string;
|
|
60
|
+
/**
|
|
61
|
+
* The worker associated with this group member.
|
|
62
|
+
*
|
|
63
|
+
* Expandable field
|
|
64
|
+
*/
|
|
65
|
+
worker?: WorkersAPI.Worker;
|
|
66
|
+
/**
|
|
67
|
+
* The worker's identifier associated with this group member.
|
|
68
|
+
*/
|
|
69
|
+
worker_id?: string;
|
|
70
|
+
}
|
|
37
71
|
/**
|
|
38
72
|
* A list of redacted fields.
|
|
39
73
|
*/
|
|
@@ -52,4 +86,5 @@ export declare namespace RedactedFields {
|
|
|
52
86
|
reason?: string;
|
|
53
87
|
}
|
|
54
88
|
}
|
|
89
|
+
export type GroupMembersPageCursorURL = PageCursorURL<GroupMember>;
|
|
55
90
|
//# sourceMappingURL=shared.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.mts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"shared.d.mts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"OAEO,KAAK,UAAU;OACf,EAAE,aAAa,EAAE;AAExB,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAE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AI,CAAC,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB;CACF;AAED,MAAM,MAAM,yBAAyB,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC"}
|
package/resources/shared.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as WorkersAPI from "./workers.js";
|
|
2
|
+
import { PageCursorURL } from "../core/pagination.js";
|
|
1
3
|
export interface Address {
|
|
2
4
|
/**
|
|
3
5
|
* The country component, pursuant to SCIM RFC 7643 4.1.2.
|
|
@@ -34,6 +36,38 @@ export interface Address {
|
|
|
34
36
|
* The country component, pursuant to SCIM RFC 7643 4.1.2.
|
|
35
37
|
*/
|
|
36
38
|
export type CountryCode = 'AF' | 'AX' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BQ' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'CV' | 'KH' | 'CM' | 'CA' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'CI' | 'HR' | 'CW' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'SZ' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GG' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IQ' | 'IE' | 'IM' | 'IL' | 'IT' | 'JM' | 'JP' | 'JE' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KR' | 'XK' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'AN' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'MK' | 'MP' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RO' | 'RU' | 'RW' | 'RE' | 'BL' | 'SH' | 'KN' | 'LC' | 'MF' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'SX' | 'SY' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'SS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SE' | 'CH' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'US' | 'UM' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW';
|
|
39
|
+
export interface GroupMember {
|
|
40
|
+
/**
|
|
41
|
+
* Identifier field
|
|
42
|
+
*/
|
|
43
|
+
id: string;
|
|
44
|
+
/**
|
|
45
|
+
* Record creation date
|
|
46
|
+
*/
|
|
47
|
+
created_at: string;
|
|
48
|
+
/**
|
|
49
|
+
* Record update date
|
|
50
|
+
*/
|
|
51
|
+
updated_at: string;
|
|
52
|
+
/**
|
|
53
|
+
* The group member's full name.
|
|
54
|
+
*/
|
|
55
|
+
full_name?: string;
|
|
56
|
+
/**
|
|
57
|
+
* The group member's associated work email address.
|
|
58
|
+
*/
|
|
59
|
+
work_email?: string;
|
|
60
|
+
/**
|
|
61
|
+
* The worker associated with this group member.
|
|
62
|
+
*
|
|
63
|
+
* Expandable field
|
|
64
|
+
*/
|
|
65
|
+
worker?: WorkersAPI.Worker;
|
|
66
|
+
/**
|
|
67
|
+
* The worker's identifier associated with this group member.
|
|
68
|
+
*/
|
|
69
|
+
worker_id?: string;
|
|
70
|
+
}
|
|
37
71
|
/**
|
|
38
72
|
* A list of redacted fields.
|
|
39
73
|
*/
|
|
@@ -52,4 +86,5 @@ export declare namespace RedactedFields {
|
|
|
52
86
|
reason?: string;
|
|
53
87
|
}
|
|
54
88
|
}
|
|
89
|
+
export type GroupMembersPageCursorURL = PageCursorURL<GroupMember>;
|
|
55
90
|
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"OAEO,KAAK,UAAU;OACf,EAAE,aAAa,EAAE;AAExB,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAE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