@rippling/rippling-sdk 0.2.0-alpha.108 → 0.2.0-alpha.110
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/client.d.mts +14 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +14 -0
- package/client.d.ts.map +1 -1
- package/client.js +18 -0
- package/client.js.map +1 -1
- package/client.mjs +18 -0
- package/client.mjs.map +1 -1
- package/index.d.mts +5 -0
- package/index.d.mts.map +1 -1
- package/index.d.ts +5 -0
- package/index.d.ts.map +1 -1
- package/index.js +11 -1
- package/index.js.map +1 -1
- package/index.mjs +5 -0
- package/index.mjs.map +1 -1
- package/lib/charts/builders.d.mts +18 -19
- package/lib/charts/builders.d.mts.map +1 -1
- package/lib/charts/builders.d.ts +18 -19
- package/lib/charts/builders.d.ts.map +1 -1
- package/lib/charts/builders.js +35 -28
- package/lib/charts/builders.js.map +1 -1
- package/lib/charts/builders.mjs +35 -28
- package/lib/charts/builders.mjs.map +1 -1
- package/lib/charts/describe.d.mts +6 -7
- package/lib/charts/describe.d.mts.map +1 -1
- package/lib/charts/describe.d.ts +6 -7
- package/lib/charts/describe.d.ts.map +1 -1
- package/lib/charts/describe.js +26 -27
- package/lib/charts/describe.js.map +1 -1
- package/lib/charts/describe.mjs +27 -28
- package/lib/charts/describe.mjs.map +1 -1
- package/lib/charts/errors.d.mts +2 -6
- package/lib/charts/errors.d.mts.map +1 -1
- package/lib/charts/errors.d.ts +2 -6
- package/lib/charts/errors.d.ts.map +1 -1
- package/lib/charts/errors.js +2 -6
- package/lib/charts/errors.js.map +1 -1
- package/lib/charts/errors.mjs +2 -6
- package/lib/charts/errors.mjs.map +1 -1
- package/lib/charts/evaluate.d.mts +5 -7
- package/lib/charts/evaluate.d.mts.map +1 -1
- package/lib/charts/evaluate.d.ts +5 -7
- package/lib/charts/evaluate.d.ts.map +1 -1
- package/lib/charts/evaluate.js +21 -35
- package/lib/charts/evaluate.js.map +1 -1
- package/lib/charts/evaluate.mjs +22 -36
- package/lib/charts/evaluate.mjs.map +1 -1
- package/lib/charts/schema.d.mts +8 -97
- package/lib/charts/schema.d.mts.map +1 -1
- package/lib/charts/schema.d.ts +8 -97
- package/lib/charts/schema.d.ts.map +1 -1
- package/lib/charts/schema.js +186 -65
- package/lib/charts/schema.js.map +1 -1
- package/lib/charts/schema.mjs +185 -65
- package/lib/charts/schema.mjs.map +1 -1
- package/lib/charts/types.d.mts +40 -25
- package/lib/charts/types.d.mts.map +1 -1
- package/lib/charts/types.d.ts +40 -25
- package/lib/charts/types.d.ts.map +1 -1
- package/lib/charts/types.js +8 -10
- package/lib/charts/types.js.map +1 -1
- package/lib/charts/types.mjs +8 -10
- package/lib/charts/types.mjs.map +1 -1
- package/lib/charts/visualization-grammar.d.mts +66 -0
- package/lib/charts/visualization-grammar.d.mts.map +1 -0
- package/lib/charts/visualization-grammar.d.ts +66 -0
- package/lib/charts/visualization-grammar.d.ts.map +1 -0
- package/lib/charts/visualization-grammar.js +70 -0
- package/lib/charts/visualization-grammar.js.map +1 -0
- package/lib/charts/visualization-grammar.mjs +67 -0
- package/lib/charts/visualization-grammar.mjs.map +1 -0
- package/lib/charts/vocabulary.d.mts +7 -0
- package/lib/charts/vocabulary.d.mts.map +1 -0
- package/lib/charts/vocabulary.d.ts +7 -0
- package/lib/charts/vocabulary.d.ts.map +1 -0
- package/lib/charts/vocabulary.js +10 -0
- package/lib/charts/vocabulary.js.map +1 -0
- package/lib/charts/vocabulary.mjs +7 -0
- package/lib/charts/vocabulary.mjs.map +1 -0
- package/lib/charts.d.mts +3 -3
- package/lib/charts.d.mts.map +1 -1
- package/lib/charts.d.ts +3 -3
- package/lib/charts.d.ts.map +1 -1
- package/lib/charts.js +2 -1
- package/lib/charts.js.map +1 -1
- package/lib/charts.mjs +1 -1
- package/lib/charts.mjs.map +1 -1
- package/lib/manifest/composition.d.mts +21 -0
- package/lib/manifest/composition.d.mts.map +1 -0
- package/lib/manifest/composition.d.ts +21 -0
- package/lib/manifest/composition.d.ts.map +1 -0
- package/lib/manifest/composition.js +103 -0
- package/lib/manifest/composition.js.map +1 -0
- package/lib/manifest/composition.mjs +99 -0
- package/lib/manifest/composition.mjs.map +1 -0
- package/lib/manifest/definitions/_object-records.d.mts +23 -0
- package/lib/manifest/definitions/_object-records.d.mts.map +1 -0
- package/lib/manifest/definitions/_object-records.d.ts +23 -0
- package/lib/manifest/definitions/_object-records.d.ts.map +1 -0
- package/lib/manifest/definitions/_object-records.js +151 -0
- package/lib/manifest/definitions/_object-records.js.map +1 -0
- package/lib/manifest/definitions/_object-records.mjs +147 -0
- package/lib/manifest/definitions/_object-records.mjs.map +1 -0
- package/lib/manifest/definitions/action.d.mts +7 -0
- package/lib/manifest/definitions/action.d.mts.map +1 -0
- package/lib/manifest/definitions/action.d.ts +7 -0
- package/lib/manifest/definitions/action.d.ts.map +1 -0
- package/lib/manifest/definitions/action.js +25 -0
- package/lib/manifest/definitions/action.js.map +1 -0
- package/lib/manifest/definitions/action.mjs +22 -0
- package/lib/manifest/definitions/action.mjs.map +1 -0
- package/lib/manifest/definitions/agent.d.mts +51 -0
- package/lib/manifest/definitions/agent.d.mts.map +1 -0
- package/lib/manifest/definitions/agent.d.ts +51 -0
- package/lib/manifest/definitions/agent.d.ts.map +1 -0
- package/lib/manifest/definitions/agent.js +65 -0
- package/lib/manifest/definitions/agent.js.map +1 -0
- package/lib/manifest/definitions/agent.mjs +59 -0
- package/lib/manifest/definitions/agent.mjs.map +1 -0
- package/lib/manifest/definitions/app.d.mts +3 -0
- package/lib/manifest/definitions/app.d.mts.map +1 -0
- package/lib/manifest/definitions/app.d.ts +3 -0
- package/lib/manifest/definitions/app.d.ts.map +1 -0
- package/lib/manifest/definitions/app.js +14 -0
- package/lib/manifest/definitions/app.js.map +1 -0
- package/lib/manifest/definitions/app.mjs +11 -0
- package/lib/manifest/definitions/app.mjs.map +1 -0
- package/lib/manifest/definitions/category.d.mts +9 -0
- package/lib/manifest/definitions/category.d.mts.map +1 -0
- package/lib/manifest/definitions/category.d.ts +9 -0
- package/lib/manifest/definitions/category.d.ts.map +1 -0
- package/lib/manifest/definitions/category.js +27 -0
- package/lib/manifest/definitions/category.js.map +1 -0
- package/lib/manifest/definitions/category.mjs +23 -0
- package/lib/manifest/definitions/category.mjs.map +1 -0
- package/lib/manifest/definitions/component.d.mts +101 -0
- package/lib/manifest/definitions/component.d.mts.map +1 -0
- package/lib/manifest/definitions/component.d.ts +101 -0
- package/lib/manifest/definitions/component.d.ts.map +1 -0
- package/lib/manifest/definitions/component.js +106 -0
- package/lib/manifest/definitions/component.js.map +1 -0
- package/lib/manifest/definitions/component.mjs +97 -0
- package/lib/manifest/definitions/component.mjs.map +1 -0
- package/lib/manifest/definitions/custom-field-section.d.mts +13 -0
- package/lib/manifest/definitions/custom-field-section.d.mts.map +1 -0
- package/lib/manifest/definitions/custom-field-section.d.ts +13 -0
- package/lib/manifest/definitions/custom-field-section.d.ts.map +1 -0
- package/lib/manifest/definitions/custom-field-section.js +15 -0
- package/lib/manifest/definitions/custom-field-section.js.map +1 -0
- package/lib/manifest/definitions/custom-field-section.mjs +12 -0
- package/lib/manifest/definitions/custom-field-section.mjs.map +1 -0
- package/lib/manifest/definitions/custom-field.d.mts +10 -0
- package/lib/manifest/definitions/custom-field.d.mts.map +1 -0
- package/lib/manifest/definitions/custom-field.d.ts +10 -0
- package/lib/manifest/definitions/custom-field.d.ts.map +1 -0
- package/lib/manifest/definitions/custom-field.js +18 -0
- package/lib/manifest/definitions/custom-field.js.map +1 -0
- package/lib/manifest/definitions/custom-field.mjs +15 -0
- package/lib/manifest/definitions/custom-field.mjs.map +1 -0
- package/lib/manifest/definitions/custom-object.d.mts +162 -0
- package/lib/manifest/definitions/custom-object.d.mts.map +1 -0
- package/lib/manifest/definitions/custom-object.d.ts +162 -0
- package/lib/manifest/definitions/custom-object.d.ts.map +1 -0
- package/lib/manifest/definitions/custom-object.js +412 -0
- package/lib/manifest/definitions/custom-object.js.map +1 -0
- package/lib/manifest/definitions/custom-object.mjs +386 -0
- package/lib/manifest/definitions/custom-object.mjs.map +1 -0
- package/lib/manifest/definitions/custom-skill.d.mts +8 -0
- package/lib/manifest/definitions/custom-skill.d.mts.map +1 -0
- package/lib/manifest/definitions/custom-skill.d.ts +8 -0
- package/lib/manifest/definitions/custom-skill.d.ts.map +1 -0
- package/lib/manifest/definitions/custom-skill.js +15 -0
- package/lib/manifest/definitions/custom-skill.js.map +1 -0
- package/lib/manifest/definitions/custom-skill.mjs +12 -0
- package/lib/manifest/definitions/custom-skill.mjs.map +1 -0
- package/lib/manifest/definitions/field-section.d.mts +7 -0
- package/lib/manifest/definitions/field-section.d.mts.map +1 -0
- package/lib/manifest/definitions/field-section.d.ts +7 -0
- package/lib/manifest/definitions/field-section.d.ts.map +1 -0
- package/lib/manifest/definitions/field-section.js +16 -0
- package/lib/manifest/definitions/field-section.js.map +1 -0
- package/lib/manifest/definitions/field-section.mjs +13 -0
- package/lib/manifest/definitions/field-section.mjs.map +1 -0
- package/lib/manifest/definitions/field.d.mts +38 -0
- package/lib/manifest/definitions/field.d.mts.map +1 -0
- package/lib/manifest/definitions/field.d.ts +38 -0
- package/lib/manifest/definitions/field.d.ts.map +1 -0
- package/lib/manifest/definitions/field.js +50 -0
- package/lib/manifest/definitions/field.js.map +1 -0
- package/lib/manifest/definitions/field.mjs +45 -0
- package/lib/manifest/definitions/field.mjs.map +1 -0
- package/lib/manifest/definitions/function.d.mts +61 -0
- package/lib/manifest/definitions/function.d.mts.map +1 -0
- package/lib/manifest/definitions/function.d.ts +61 -0
- package/lib/manifest/definitions/function.d.ts.map +1 -0
- package/lib/manifest/definitions/function.js +79 -0
- package/lib/manifest/definitions/function.js.map +1 -0
- package/lib/manifest/definitions/function.mjs +73 -0
- package/lib/manifest/definitions/function.mjs.map +1 -0
- package/lib/manifest/definitions/index.d.mts +22 -0
- package/lib/manifest/definitions/index.d.mts.map +1 -0
- package/lib/manifest/definitions/index.d.ts +22 -0
- package/lib/manifest/definitions/index.d.ts.map +1 -0
- package/lib/manifest/definitions/index.js +64 -0
- package/lib/manifest/definitions/index.js.map +1 -0
- package/lib/manifest/definitions/index.mjs +22 -0
- package/lib/manifest/definitions/index.mjs.map +1 -0
- package/lib/manifest/definitions/list-view.d.mts +9 -0
- package/lib/manifest/definitions/list-view.d.mts.map +1 -0
- package/lib/manifest/definitions/list-view.d.ts +9 -0
- package/lib/manifest/definitions/list-view.d.ts.map +1 -0
- package/lib/manifest/definitions/list-view.js +25 -0
- package/lib/manifest/definitions/list-view.js.map +1 -0
- package/lib/manifest/definitions/list-view.mjs +22 -0
- package/lib/manifest/definitions/list-view.mjs.map +1 -0
- package/lib/manifest/definitions/object-search-config.d.mts +13 -0
- package/lib/manifest/definitions/object-search-config.d.mts.map +1 -0
- package/lib/manifest/definitions/object-search-config.d.ts +13 -0
- package/lib/manifest/definitions/object-search-config.d.ts.map +1 -0
- package/lib/manifest/definitions/object-search-config.js +25 -0
- package/lib/manifest/definitions/object-search-config.js.map +1 -0
- package/lib/manifest/definitions/object-search-config.mjs +22 -0
- package/lib/manifest/definitions/object-search-config.mjs.map +1 -0
- package/lib/manifest/definitions/object-settings.d.mts +24 -0
- package/lib/manifest/definitions/object-settings.d.mts.map +1 -0
- package/lib/manifest/definitions/object-settings.d.ts +24 -0
- package/lib/manifest/definitions/object-settings.d.ts.map +1 -0
- package/lib/manifest/definitions/object-settings.js +32 -0
- package/lib/manifest/definitions/object-settings.js.map +1 -0
- package/lib/manifest/definitions/object-settings.mjs +29 -0
- package/lib/manifest/definitions/object-settings.mjs.map +1 -0
- package/lib/manifest/definitions/page-layout.d.mts +21 -0
- package/lib/manifest/definitions/page-layout.d.mts.map +1 -0
- package/lib/manifest/definitions/page-layout.d.ts +21 -0
- package/lib/manifest/definitions/page-layout.d.ts.map +1 -0
- package/lib/manifest/definitions/page-layout.js +155 -0
- package/lib/manifest/definitions/page-layout.js.map +1 -0
- package/lib/manifest/definitions/page-layout.mjs +152 -0
- package/lib/manifest/definitions/page-layout.mjs.map +1 -0
- package/lib/manifest/definitions/page.d.mts +8 -0
- package/lib/manifest/definitions/page.d.mts.map +1 -0
- package/lib/manifest/definitions/page.d.ts +8 -0
- package/lib/manifest/definitions/page.d.ts.map +1 -0
- package/lib/manifest/definitions/page.js +15 -0
- package/lib/manifest/definitions/page.js.map +1 -0
- package/lib/manifest/definitions/page.mjs +12 -0
- package/lib/manifest/definitions/page.mjs.map +1 -0
- package/lib/manifest/definitions/record-triggered-flow.d.mts +24 -0
- package/lib/manifest/definitions/record-triggered-flow.d.mts.map +1 -0
- package/lib/manifest/definitions/record-triggered-flow.d.ts +24 -0
- package/lib/manifest/definitions/record-triggered-flow.d.ts.map +1 -0
- package/lib/manifest/definitions/record-triggered-flow.js +28 -0
- package/lib/manifest/definitions/record-triggered-flow.js.map +1 -0
- package/lib/manifest/definitions/record-triggered-flow.mjs +25 -0
- package/lib/manifest/definitions/record-triggered-flow.mjs.map +1 -0
- package/lib/manifest/definitions/validation.d.mts +8 -0
- package/lib/manifest/definitions/validation.d.mts.map +1 -0
- package/lib/manifest/definitions/validation.d.ts +8 -0
- package/lib/manifest/definitions/validation.d.ts.map +1 -0
- package/lib/manifest/definitions/validation.js +24 -0
- package/lib/manifest/definitions/validation.js.map +1 -0
- package/lib/manifest/definitions/validation.mjs +21 -0
- package/lib/manifest/definitions/validation.mjs.map +1 -0
- package/lib/manifest/definitions/workflow.d.mts +10 -0
- package/lib/manifest/definitions/workflow.d.mts.map +1 -0
- package/lib/manifest/definitions/workflow.d.ts +10 -0
- package/lib/manifest/definitions/workflow.d.ts.map +1 -0
- package/lib/manifest/definitions/workflow.js +33 -0
- package/lib/manifest/definitions/workflow.js.map +1 -0
- package/lib/manifest/definitions/workflow.mjs +29 -0
- package/lib/manifest/definitions/workflow.mjs.map +1 -0
- package/lib/manifest/index.d.mts +3 -0
- package/lib/manifest/index.d.mts.map +1 -1
- package/lib/manifest/index.d.ts +3 -0
- package/lib/manifest/index.d.ts.map +1 -1
- package/lib/manifest/index.js +4 -0
- package/lib/manifest/index.js.map +1 -1
- package/lib/manifest/index.mjs +3 -0
- package/lib/manifest/index.mjs.map +1 -1
- package/lib/manifest/package-manifest.d.mts +17 -0
- package/lib/manifest/package-manifest.d.mts.map +1 -0
- package/lib/manifest/package-manifest.d.ts +17 -0
- package/lib/manifest/package-manifest.d.ts.map +1 -0
- package/lib/manifest/package-manifest.js +26 -0
- package/lib/manifest/package-manifest.js.map +1 -0
- package/lib/manifest/package-manifest.mjs +23 -0
- package/lib/manifest/package-manifest.mjs.map +1 -0
- package/package.json +4 -2
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +4 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/reimbursements.d.mts +1 -1
- package/resources/reimbursements.d.ts +1 -1
- package/resources/reimbursements.js +1 -1
- package/resources/reimbursements.mjs +1 -1
- package/resources/spend-categories.d.mts +140 -0
- package/resources/spend-categories.d.mts.map +1 -0
- package/resources/spend-categories.d.ts +140 -0
- package/resources/spend-categories.d.ts.map +1 -0
- package/resources/spend-categories.js +83 -0
- package/resources/spend-categories.js.map +1 -0
- package/resources/spend-categories.mjs +79 -0
- package/resources/spend-categories.mjs.map +1 -0
- package/src/client.ts +41 -0
- package/src/index.ts +17 -0
- package/src/lib/charts/README.md +35 -28
- package/src/lib/charts/agent-reference.md +73 -0
- package/src/lib/charts/builders.ts +51 -35
- package/src/lib/charts/capabilities.json +96 -0
- package/src/lib/charts/describe.ts +31 -29
- package/src/lib/charts/errors.ts +2 -6
- package/src/lib/charts/evaluate.ts +25 -38
- package/src/lib/charts/schema.ts +232 -66
- package/src/lib/charts/types.ts +42 -31
- package/src/lib/charts/visualization-grammar.ts +67 -0
- package/src/lib/charts/vocabulary.ts +7 -0
- package/src/lib/charts.ts +8 -1
- package/src/lib/manifest/composition.ts +133 -0
- package/src/lib/manifest/definitions/README.md +89 -0
- package/src/lib/manifest/definitions/_object-records.ts +218 -0
- package/src/lib/manifest/definitions/action.ts +31 -0
- package/src/lib/manifest/definitions/agent.ts +149 -0
- package/src/lib/manifest/definitions/app.ts +12 -0
- package/src/lib/manifest/definitions/category.ts +35 -0
- package/src/lib/manifest/definitions/component.ts +241 -0
- package/src/lib/manifest/definitions/custom-field-section.ts +39 -0
- package/src/lib/manifest/definitions/custom-field.ts +32 -0
- package/src/lib/manifest/definitions/custom-object.ts +786 -0
- package/src/lib/manifest/definitions/custom-skill.ts +28 -0
- package/src/lib/manifest/definitions/field-section.ts +31 -0
- package/src/lib/manifest/definitions/field.ts +119 -0
- package/src/lib/manifest/definitions/function.ts +198 -0
- package/src/lib/manifest/definitions/index.ts +91 -0
- package/src/lib/manifest/definitions/list-view.ts +48 -0
- package/src/lib/manifest/definitions/object-search-config.ts +44 -0
- package/src/lib/manifest/definitions/object-settings.ts +61 -0
- package/src/lib/manifest/definitions/page-layout.ts +218 -0
- package/src/lib/manifest/definitions/page.ts +28 -0
- package/src/lib/manifest/definitions/record-triggered-flow.ts +71 -0
- package/src/lib/manifest/definitions/validation.ts +46 -0
- package/src/lib/manifest/definitions/workflow.ts +62 -0
- package/src/lib/manifest/index.ts +4 -0
- package/src/lib/manifest/package-manifest.ts +40 -0
- package/src/resources/index.ts +7 -0
- package/src/resources/reimbursements.ts +1 -1
- package/src/resources/spend-categories.ts +175 -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
- package/lib/charts/guards.d.mts +0 -15
- package/lib/charts/guards.d.mts.map +0 -1
- package/lib/charts/guards.d.ts +0 -15
- package/lib/charts/guards.d.ts.map +0 -1
- package/lib/charts/guards.js +0 -38
- package/lib/charts/guards.js.map +0 -1
- package/lib/charts/guards.mjs +0 -34
- package/lib/charts/guards.mjs.map +0 -1
- package/src/lib/charts/guards.ts +0 -42
|
@@ -0,0 +1,140 @@
|
|
|
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 { PageCursorURL, PagePromise } from "../core/pagination.mjs";
|
|
5
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
6
|
+
export declare class SpendCategories extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* A list of spend categories.
|
|
9
|
+
*
|
|
10
|
+
* - Requires: `Internal Testing`
|
|
11
|
+
* - Filterable fields: `name`
|
|
12
|
+
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
13
|
+
*
|
|
14
|
+
* @example HTTP
|
|
15
|
+
* Representative request and response shapes.
|
|
16
|
+
* ```
|
|
17
|
+
* GET /spend-categories/?filter=filter&order_by=order_by&limit=50&cursor=cursor HTTP/1.1
|
|
18
|
+
* Host: rest.ripplingapis.com
|
|
19
|
+
* Accept: application/json
|
|
20
|
+
* Rippling-Api-Version: 2024-08-01
|
|
21
|
+
*
|
|
22
|
+
* HTTP/1.1 200 OK
|
|
23
|
+
* Content-Type: application/json
|
|
24
|
+
*
|
|
25
|
+
* {
|
|
26
|
+
* "__meta": {
|
|
27
|
+
* "redacted_fields": [
|
|
28
|
+
* {
|
|
29
|
+
* "name": "date_of_birth",
|
|
30
|
+
* "reason": "Insufficient entitlements"
|
|
31
|
+
* }
|
|
32
|
+
* ]
|
|
33
|
+
* },
|
|
34
|
+
* "results": [
|
|
35
|
+
* {
|
|
36
|
+
* "id": "string",
|
|
37
|
+
* "created_at": "string",
|
|
38
|
+
* "updated_at": "string",
|
|
39
|
+
* "name": "string",
|
|
40
|
+
* "active": false
|
|
41
|
+
* }
|
|
42
|
+
* ],
|
|
43
|
+
* "next_link": "string"
|
|
44
|
+
* }
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
list(query?: SpendCategoryListParams | null | undefined, options?: RequestOptions): PagePromise<SpendCategoryListResponsesPageCursorURL, SpendCategoryListResponse>;
|
|
48
|
+
/**
|
|
49
|
+
* Retrieve a specific spend category
|
|
50
|
+
*
|
|
51
|
+
* @example HTTP
|
|
52
|
+
* Representative request and response shapes.
|
|
53
|
+
* ```
|
|
54
|
+
* GET /spend-categories/{id}/ HTTP/1.1
|
|
55
|
+
* Host: rest.ripplingapis.com
|
|
56
|
+
* Accept: application/json
|
|
57
|
+
* Rippling-Api-Version: 2024-08-01
|
|
58
|
+
*
|
|
59
|
+
* HTTP/1.1 200 OK
|
|
60
|
+
* Content-Type: application/json
|
|
61
|
+
*
|
|
62
|
+
* {
|
|
63
|
+
* "__meta": {
|
|
64
|
+
* "redacted_fields": [
|
|
65
|
+
* {}
|
|
66
|
+
* ]
|
|
67
|
+
* }
|
|
68
|
+
* }
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<SpendCategoryRetrieveResponse>;
|
|
72
|
+
}
|
|
73
|
+
export type SpendCategoryListResponsesPageCursorURL = PageCursorURL<SpendCategoryListResponse>;
|
|
74
|
+
/**
|
|
75
|
+
* A Spend category used to classify transaction line items.
|
|
76
|
+
*
|
|
77
|
+
* Inactive categories are included so historical transactions can still resolve their category.
|
|
78
|
+
*/
|
|
79
|
+
export interface SpendCategoryListResponse {
|
|
80
|
+
/**
|
|
81
|
+
* Identifier field
|
|
82
|
+
*/
|
|
83
|
+
id: string;
|
|
84
|
+
/**
|
|
85
|
+
* Record creation date
|
|
86
|
+
*/
|
|
87
|
+
created_at: string;
|
|
88
|
+
/**
|
|
89
|
+
* Record update date
|
|
90
|
+
*/
|
|
91
|
+
updated_at: string;
|
|
92
|
+
/**
|
|
93
|
+
* Whether the category is active. Inactive categories remain available for
|
|
94
|
+
* historical references.
|
|
95
|
+
*/
|
|
96
|
+
active?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Name of the Spend category.
|
|
99
|
+
*/
|
|
100
|
+
name?: string;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Meta information for the response.
|
|
104
|
+
*/
|
|
105
|
+
export interface SpendCategoryRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
106
|
+
/**
|
|
107
|
+
* Identifier field
|
|
108
|
+
*/
|
|
109
|
+
id: string;
|
|
110
|
+
/**
|
|
111
|
+
* Record creation date
|
|
112
|
+
*/
|
|
113
|
+
created_at: string;
|
|
114
|
+
/**
|
|
115
|
+
* Record update date
|
|
116
|
+
*/
|
|
117
|
+
updated_at: string;
|
|
118
|
+
/**
|
|
119
|
+
* Whether the category is active. Inactive categories remain available for
|
|
120
|
+
* historical references.
|
|
121
|
+
*/
|
|
122
|
+
active?: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* Name of the Spend category.
|
|
125
|
+
*/
|
|
126
|
+
name?: string;
|
|
127
|
+
}
|
|
128
|
+
export interface SpendCategoryListParams {
|
|
129
|
+
cursor?: string;
|
|
130
|
+
filter?: string;
|
|
131
|
+
/**
|
|
132
|
+
* The maximum number of results to return. Defaults to 50. Maximum is 100.
|
|
133
|
+
*/
|
|
134
|
+
limit?: number;
|
|
135
|
+
order_by?: string;
|
|
136
|
+
}
|
|
137
|
+
export declare namespace SpendCategories {
|
|
138
|
+
export { type SpendCategoryListResponse as SpendCategoryListResponse, type SpendCategoryRetrieveResponse as SpendCategoryRetrieveResponse, type SpendCategoryListResponsesPageCursorURL as SpendCategoryListResponsesPageCursorURL, type SpendCategoryListParams as SpendCategoryListParams, };
|
|
139
|
+
}
|
|
140
|
+
//# sourceMappingURL=spend-categories.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spend-categories.d.mts","sourceRoot":"","sources":["../src/resources/spend-categories.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,mBAAmB,gCAA4B;AAC3D,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,+BAA2B;AAChE,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;IACH,IAAI,CACF,KAAK,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,uCAAuC,EAAE,yBAAyB,CAAC;IAOlF;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,CAAC;CAG1F;AAED,MAAM,MAAM,uCAAuC,GAAG,aAAa,CAAC,yBAAyB,CAAC,CAAC;AAE/F;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,6BAA8B,SAAQ,mBAAmB,CAAC,IAAI;IAC7E;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,uBAAuB;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -0,0 +1,140 @@
|
|
|
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 { PageCursorURL, PagePromise } from "../core/pagination.js";
|
|
5
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
6
|
+
export declare class SpendCategories extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* A list of spend categories.
|
|
9
|
+
*
|
|
10
|
+
* - Requires: `Internal Testing`
|
|
11
|
+
* - Filterable fields: `name`
|
|
12
|
+
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
13
|
+
*
|
|
14
|
+
* @example HTTP
|
|
15
|
+
* Representative request and response shapes.
|
|
16
|
+
* ```
|
|
17
|
+
* GET /spend-categories/?filter=filter&order_by=order_by&limit=50&cursor=cursor HTTP/1.1
|
|
18
|
+
* Host: rest.ripplingapis.com
|
|
19
|
+
* Accept: application/json
|
|
20
|
+
* Rippling-Api-Version: 2024-08-01
|
|
21
|
+
*
|
|
22
|
+
* HTTP/1.1 200 OK
|
|
23
|
+
* Content-Type: application/json
|
|
24
|
+
*
|
|
25
|
+
* {
|
|
26
|
+
* "__meta": {
|
|
27
|
+
* "redacted_fields": [
|
|
28
|
+
* {
|
|
29
|
+
* "name": "date_of_birth",
|
|
30
|
+
* "reason": "Insufficient entitlements"
|
|
31
|
+
* }
|
|
32
|
+
* ]
|
|
33
|
+
* },
|
|
34
|
+
* "results": [
|
|
35
|
+
* {
|
|
36
|
+
* "id": "string",
|
|
37
|
+
* "created_at": "string",
|
|
38
|
+
* "updated_at": "string",
|
|
39
|
+
* "name": "string",
|
|
40
|
+
* "active": false
|
|
41
|
+
* }
|
|
42
|
+
* ],
|
|
43
|
+
* "next_link": "string"
|
|
44
|
+
* }
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
list(query?: SpendCategoryListParams | null | undefined, options?: RequestOptions): PagePromise<SpendCategoryListResponsesPageCursorURL, SpendCategoryListResponse>;
|
|
48
|
+
/**
|
|
49
|
+
* Retrieve a specific spend category
|
|
50
|
+
*
|
|
51
|
+
* @example HTTP
|
|
52
|
+
* Representative request and response shapes.
|
|
53
|
+
* ```
|
|
54
|
+
* GET /spend-categories/{id}/ HTTP/1.1
|
|
55
|
+
* Host: rest.ripplingapis.com
|
|
56
|
+
* Accept: application/json
|
|
57
|
+
* Rippling-Api-Version: 2024-08-01
|
|
58
|
+
*
|
|
59
|
+
* HTTP/1.1 200 OK
|
|
60
|
+
* Content-Type: application/json
|
|
61
|
+
*
|
|
62
|
+
* {
|
|
63
|
+
* "__meta": {
|
|
64
|
+
* "redacted_fields": [
|
|
65
|
+
* {}
|
|
66
|
+
* ]
|
|
67
|
+
* }
|
|
68
|
+
* }
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<SpendCategoryRetrieveResponse>;
|
|
72
|
+
}
|
|
73
|
+
export type SpendCategoryListResponsesPageCursorURL = PageCursorURL<SpendCategoryListResponse>;
|
|
74
|
+
/**
|
|
75
|
+
* A Spend category used to classify transaction line items.
|
|
76
|
+
*
|
|
77
|
+
* Inactive categories are included so historical transactions can still resolve their category.
|
|
78
|
+
*/
|
|
79
|
+
export interface SpendCategoryListResponse {
|
|
80
|
+
/**
|
|
81
|
+
* Identifier field
|
|
82
|
+
*/
|
|
83
|
+
id: string;
|
|
84
|
+
/**
|
|
85
|
+
* Record creation date
|
|
86
|
+
*/
|
|
87
|
+
created_at: string;
|
|
88
|
+
/**
|
|
89
|
+
* Record update date
|
|
90
|
+
*/
|
|
91
|
+
updated_at: string;
|
|
92
|
+
/**
|
|
93
|
+
* Whether the category is active. Inactive categories remain available for
|
|
94
|
+
* historical references.
|
|
95
|
+
*/
|
|
96
|
+
active?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Name of the Spend category.
|
|
99
|
+
*/
|
|
100
|
+
name?: string;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Meta information for the response.
|
|
104
|
+
*/
|
|
105
|
+
export interface SpendCategoryRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
106
|
+
/**
|
|
107
|
+
* Identifier field
|
|
108
|
+
*/
|
|
109
|
+
id: string;
|
|
110
|
+
/**
|
|
111
|
+
* Record creation date
|
|
112
|
+
*/
|
|
113
|
+
created_at: string;
|
|
114
|
+
/**
|
|
115
|
+
* Record update date
|
|
116
|
+
*/
|
|
117
|
+
updated_at: string;
|
|
118
|
+
/**
|
|
119
|
+
* Whether the category is active. Inactive categories remain available for
|
|
120
|
+
* historical references.
|
|
121
|
+
*/
|
|
122
|
+
active?: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* Name of the Spend category.
|
|
125
|
+
*/
|
|
126
|
+
name?: string;
|
|
127
|
+
}
|
|
128
|
+
export interface SpendCategoryListParams {
|
|
129
|
+
cursor?: string;
|
|
130
|
+
filter?: string;
|
|
131
|
+
/**
|
|
132
|
+
* The maximum number of results to return. Defaults to 50. Maximum is 100.
|
|
133
|
+
*/
|
|
134
|
+
limit?: number;
|
|
135
|
+
order_by?: string;
|
|
136
|
+
}
|
|
137
|
+
export declare namespace SpendCategories {
|
|
138
|
+
export { type SpendCategoryListResponse as SpendCategoryListResponse, type SpendCategoryRetrieveResponse as SpendCategoryRetrieveResponse, type SpendCategoryListResponsesPageCursorURL as SpendCategoryListResponsesPageCursorURL, type SpendCategoryListParams as SpendCategoryListParams, };
|
|
139
|
+
}
|
|
140
|
+
//# sourceMappingURL=spend-categories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spend-categories.d.ts","sourceRoot":"","sources":["../src/resources/spend-categories.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,mBAAmB,+BAA4B;AAC3D,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,8BAA2B;AAChE,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;IACH,IAAI,CACF,KAAK,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,uCAAuC,EAAE,yBAAyB,CAAC;IAOlF;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,CAAC;CAG1F;AAED,MAAM,MAAM,uCAAuC,GAAG,aAAa,CAAC,yBAAyB,CAAC,CAAC;AAE/F;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,6BAA8B,SAAQ,mBAAmB,CAAC,IAAI;IAC7E;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,uBAAuB;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -0,0 +1,83 @@
|
|
|
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.SpendCategories = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../core/pagination.js");
|
|
7
|
+
const path_1 = require("../internal/utils/path.js");
|
|
8
|
+
class SpendCategories extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* A list of spend categories.
|
|
11
|
+
*
|
|
12
|
+
* - Requires: `Internal Testing`
|
|
13
|
+
* - Filterable fields: `name`
|
|
14
|
+
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
15
|
+
*
|
|
16
|
+
* @example HTTP
|
|
17
|
+
* Representative request and response shapes.
|
|
18
|
+
* ```
|
|
19
|
+
* GET /spend-categories/?filter=filter&order_by=order_by&limit=50&cursor=cursor HTTP/1.1
|
|
20
|
+
* Host: rest.ripplingapis.com
|
|
21
|
+
* Accept: application/json
|
|
22
|
+
* Rippling-Api-Version: 2024-08-01
|
|
23
|
+
*
|
|
24
|
+
* HTTP/1.1 200 OK
|
|
25
|
+
* Content-Type: application/json
|
|
26
|
+
*
|
|
27
|
+
* {
|
|
28
|
+
* "__meta": {
|
|
29
|
+
* "redacted_fields": [
|
|
30
|
+
* {
|
|
31
|
+
* "name": "date_of_birth",
|
|
32
|
+
* "reason": "Insufficient entitlements"
|
|
33
|
+
* }
|
|
34
|
+
* ]
|
|
35
|
+
* },
|
|
36
|
+
* "results": [
|
|
37
|
+
* {
|
|
38
|
+
* "id": "string",
|
|
39
|
+
* "created_at": "string",
|
|
40
|
+
* "updated_at": "string",
|
|
41
|
+
* "name": "string",
|
|
42
|
+
* "active": false
|
|
43
|
+
* }
|
|
44
|
+
* ],
|
|
45
|
+
* "next_link": "string"
|
|
46
|
+
* }
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
list(query = {}, options) {
|
|
50
|
+
return this._client.getAPIList('/spend-categories/', (pagination_1.PageCursorURL), {
|
|
51
|
+
query,
|
|
52
|
+
...options,
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Retrieve a specific spend category
|
|
57
|
+
*
|
|
58
|
+
* @example HTTP
|
|
59
|
+
* Representative request and response shapes.
|
|
60
|
+
* ```
|
|
61
|
+
* GET /spend-categories/{id}/ HTTP/1.1
|
|
62
|
+
* Host: rest.ripplingapis.com
|
|
63
|
+
* Accept: application/json
|
|
64
|
+
* Rippling-Api-Version: 2024-08-01
|
|
65
|
+
*
|
|
66
|
+
* HTTP/1.1 200 OK
|
|
67
|
+
* Content-Type: application/json
|
|
68
|
+
*
|
|
69
|
+
* {
|
|
70
|
+
* "__meta": {
|
|
71
|
+
* "redacted_fields": [
|
|
72
|
+
* {}
|
|
73
|
+
* ]
|
|
74
|
+
* }
|
|
75
|
+
* }
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
78
|
+
retrieve(id, options) {
|
|
79
|
+
return this._client.get((0, path_1.path) `/spend-categories/${id}/`, options);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.SpendCategories = SpendCategories;
|
|
83
|
+
//# sourceMappingURL=spend-categories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spend-categories.js","sourceRoot":"","sources":["../src/resources/spend-categories.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAgE;AAEhE,oDAA8C;AAE9C,MAAa,eAAgB,SAAQ,sBAAW;IAC9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;IACH,IAAI,CACF,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,oBAAoB,EAAE,CAAA,0BAAwC,CAAA,EAAE;YAC7F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;CACF;AA7ED,0CA6EC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { PageCursorURL } from "../core/pagination.mjs";
|
|
4
|
+
import { path } from "../internal/utils/path.mjs";
|
|
5
|
+
export class SpendCategories extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* A list of spend categories.
|
|
8
|
+
*
|
|
9
|
+
* - Requires: `Internal Testing`
|
|
10
|
+
* - Filterable fields: `name`
|
|
11
|
+
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
12
|
+
*
|
|
13
|
+
* @example HTTP
|
|
14
|
+
* Representative request and response shapes.
|
|
15
|
+
* ```
|
|
16
|
+
* GET /spend-categories/?filter=filter&order_by=order_by&limit=50&cursor=cursor HTTP/1.1
|
|
17
|
+
* Host: rest.ripplingapis.com
|
|
18
|
+
* Accept: application/json
|
|
19
|
+
* Rippling-Api-Version: 2024-08-01
|
|
20
|
+
*
|
|
21
|
+
* HTTP/1.1 200 OK
|
|
22
|
+
* Content-Type: application/json
|
|
23
|
+
*
|
|
24
|
+
* {
|
|
25
|
+
* "__meta": {
|
|
26
|
+
* "redacted_fields": [
|
|
27
|
+
* {
|
|
28
|
+
* "name": "date_of_birth",
|
|
29
|
+
* "reason": "Insufficient entitlements"
|
|
30
|
+
* }
|
|
31
|
+
* ]
|
|
32
|
+
* },
|
|
33
|
+
* "results": [
|
|
34
|
+
* {
|
|
35
|
+
* "id": "string",
|
|
36
|
+
* "created_at": "string",
|
|
37
|
+
* "updated_at": "string",
|
|
38
|
+
* "name": "string",
|
|
39
|
+
* "active": false
|
|
40
|
+
* }
|
|
41
|
+
* ],
|
|
42
|
+
* "next_link": "string"
|
|
43
|
+
* }
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
list(query = {}, options) {
|
|
47
|
+
return this._client.getAPIList('/spend-categories/', (PageCursorURL), {
|
|
48
|
+
query,
|
|
49
|
+
...options,
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Retrieve a specific spend category
|
|
54
|
+
*
|
|
55
|
+
* @example HTTP
|
|
56
|
+
* Representative request and response shapes.
|
|
57
|
+
* ```
|
|
58
|
+
* GET /spend-categories/{id}/ HTTP/1.1
|
|
59
|
+
* Host: rest.ripplingapis.com
|
|
60
|
+
* Accept: application/json
|
|
61
|
+
* Rippling-Api-Version: 2024-08-01
|
|
62
|
+
*
|
|
63
|
+
* HTTP/1.1 200 OK
|
|
64
|
+
* Content-Type: application/json
|
|
65
|
+
*
|
|
66
|
+
* {
|
|
67
|
+
* "__meta": {
|
|
68
|
+
* "redacted_fields": [
|
|
69
|
+
* {}
|
|
70
|
+
* ]
|
|
71
|
+
* }
|
|
72
|
+
* }
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
retrieve(id, options) {
|
|
76
|
+
return this._client.get(path `/spend-categories/${id}/`, options);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=spend-categories.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spend-categories.mjs","sourceRoot":"","sources":["../src/resources/spend-categories.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,aAAa,EAAe,+BAA2B;AAEhE,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;IACH,IAAI,CACF,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,oBAAoB,EAAE,CAAA,aAAwC,CAAA,EAAE;YAC7F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;CACF"}
|
package/src/client.ts
CHANGED
|
@@ -13,6 +13,15 @@ import * as Shims from './internal/shims';
|
|
|
13
13
|
import * as Opts from './internal/request-options';
|
|
14
14
|
import { stringifyQuery } from './internal/utils/query';
|
|
15
15
|
import { VERSION } from './version';
|
|
16
|
+
import type { AnyCustomObjectDefinition } from './core/platform/custom-objects/types';
|
|
17
|
+
import {
|
|
18
|
+
createFunctionClient,
|
|
19
|
+
type DefinedFunction,
|
|
20
|
+
type FunctionClient,
|
|
21
|
+
} from './lib/manifest/definitions/function';
|
|
22
|
+
import { createObjectClient, type ObjectClient } from './lib/manifest/definitions/custom-object';
|
|
23
|
+
import { createAgentClient, type AgentClient } from './lib/manifest/definitions/agent';
|
|
24
|
+
import type { ACPAgent } from './lib/manifest/acp-agent';
|
|
16
25
|
import * as Errors from './core/error';
|
|
17
26
|
import * as Pagination from './core/pagination';
|
|
18
27
|
import { AbstractPage, PageCursorURLResponse } from './core/pagination';
|
|
@@ -609,6 +618,13 @@ import {
|
|
|
609
618
|
SoftwareDeploymentUpdateResponse,
|
|
610
619
|
SoftwareDeployments,
|
|
611
620
|
} from './resources/software-deployments';
|
|
621
|
+
import {
|
|
622
|
+
SpendCategories,
|
|
623
|
+
SpendCategoryListParams,
|
|
624
|
+
SpendCategoryListResponse,
|
|
625
|
+
SpendCategoryListResponsesPageCursorURL,
|
|
626
|
+
SpendCategoryRetrieveResponse,
|
|
627
|
+
} from './resources/spend-categories';
|
|
612
628
|
import { SSOMe, SSOMeListParams, SSOMeResource } from './resources/sso-me';
|
|
613
629
|
import {
|
|
614
630
|
Team,
|
|
@@ -936,6 +952,21 @@ export interface ClientOptions {
|
|
|
936
952
|
* API Client for interfacing with the Rippling SDK API.
|
|
937
953
|
*/
|
|
938
954
|
export class RipplingSDK {
|
|
955
|
+
/** Access typed record and schema operations using this authenticated client. */
|
|
956
|
+
objects<D extends AnyCustomObjectDefinition>(definition: D): ObjectClient<D> {
|
|
957
|
+
return createObjectClient(this, definition);
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
/** Access typed function execution operations using this authenticated client. */
|
|
961
|
+
function<TInput, TOutput>(definition: DefinedFunction<TInput, TOutput>): FunctionClient<TInput, TOutput> {
|
|
962
|
+
return createFunctionClient(this, definition);
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
/** Access agent retrieval and session operations using this authenticated client. */
|
|
966
|
+
agent(definition: ACPAgent): AgentClient {
|
|
967
|
+
return createAgentClient(this, definition);
|
|
968
|
+
}
|
|
969
|
+
|
|
939
970
|
bearerToken: string;
|
|
940
971
|
|
|
941
972
|
baseURL: string;
|
|
@@ -1936,6 +1967,7 @@ export class RipplingSDK {
|
|
|
1936
1967
|
* Software deployed to company devices
|
|
1937
1968
|
*/
|
|
1938
1969
|
softwareDeployments: API.SoftwareDeployments = new API.SoftwareDeployments(this);
|
|
1970
|
+
spendCategories: API.SpendCategories = new API.SpendCategories(this);
|
|
1939
1971
|
/**
|
|
1940
1972
|
* Job titles used by the company
|
|
1941
1973
|
*/
|
|
@@ -2087,6 +2119,7 @@ RipplingSDK.ScheduledJobAssignments = ScheduledJobAssignments;
|
|
|
2087
2119
|
RipplingSDK.Shiftassignments = Shiftassignments;
|
|
2088
2120
|
RipplingSDK.Sites = Sites;
|
|
2089
2121
|
RipplingSDK.SoftwareDeployments = SoftwareDeployments;
|
|
2122
|
+
RipplingSDK.SpendCategories = SpendCategories;
|
|
2090
2123
|
RipplingSDK.Titles = Titles;
|
|
2091
2124
|
RipplingSDK.Unassignedshifts = Unassignedshifts;
|
|
2092
2125
|
RipplingSDK.VariableCompensationPayouts = VariableCompensationPayouts;
|
|
@@ -2928,6 +2961,14 @@ export declare namespace RipplingSDK {
|
|
|
2928
2961
|
type SoftwareDeploymentUpdateParams as SoftwareDeploymentUpdateParams,
|
|
2929
2962
|
};
|
|
2930
2963
|
|
|
2964
|
+
export {
|
|
2965
|
+
SpendCategories as SpendCategories,
|
|
2966
|
+
type SpendCategoryListResponse as SpendCategoryListResponse,
|
|
2967
|
+
type SpendCategoryRetrieveResponse as SpendCategoryRetrieveResponse,
|
|
2968
|
+
type SpendCategoryListResponsesPageCursorURL as SpendCategoryListResponsesPageCursorURL,
|
|
2969
|
+
type SpendCategoryListParams as SpendCategoryListParams,
|
|
2970
|
+
};
|
|
2971
|
+
|
|
2931
2972
|
export {
|
|
2932
2973
|
Titles as Titles,
|
|
2933
2974
|
type TitleListResponse as TitleListResponse,
|
package/src/index.ts
CHANGED
|
@@ -23,3 +23,20 @@ export {
|
|
|
23
23
|
} from './core/error';
|
|
24
24
|
|
|
25
25
|
export * from './functions';
|
|
26
|
+
|
|
27
|
+
export * from './core/platform/custom-objects';
|
|
28
|
+
export {
|
|
29
|
+
defineManifest,
|
|
30
|
+
compileManifest,
|
|
31
|
+
type DefineManifestOptions,
|
|
32
|
+
type ManifestDefinition,
|
|
33
|
+
type ManifestInput,
|
|
34
|
+
} from './lib/manifest/composition';
|
|
35
|
+
export * from './lib/manifest/definitions';
|
|
36
|
+
export * from './lib/manifest/package-manifest';
|
|
37
|
+
|
|
38
|
+
export {
|
|
39
|
+
defineCustomObject,
|
|
40
|
+
extendCustomObject,
|
|
41
|
+
defineCustomObjectCategory,
|
|
42
|
+
} from './lib/manifest/definitions';
|
package/src/lib/charts/README.md
CHANGED
|
@@ -21,11 +21,10 @@ by comparing its value against a constant.
|
|
|
21
21
|
- **`value`** — this data point's plotted numeric value (a bar's height, a
|
|
22
22
|
point's y, a slice's amount). It is what the rule compares.
|
|
23
23
|
- **Comparisons** — `equals`, `isNot`, `lessThan`, `greaterThan`, `lessOrEqual`, `greaterOrEqual`.
|
|
24
|
-
- **`when(condition, ifTrue, ifFalse?)`** — a conditional
|
|
25
|
-
`ifFalse`
|
|
24
|
+
- **`when(condition, ifTrue, ifFalse?)`** — a conditional colour. Both results
|
|
25
|
+
are colour strings; `ifFalse` defaults to `null` (keep the chart default).
|
|
26
26
|
- **`color(rule)`** — target the colour channel. Wrapping `when(...)` in `color(...)`
|
|
27
|
-
is what says "this rule sets the colour"
|
|
28
|
-
so more channels (opacity, label visibility) are just more wrappers later.
|
|
27
|
+
is what says "this rule sets the colour".
|
|
29
28
|
- **`literal`** — bare constants (`100`, `'#E24B4A'`) are wrapped automatically.
|
|
30
29
|
|
|
31
30
|
```ts
|
|
@@ -46,7 +45,7 @@ Agent writes a rule with these builders (the only consumer that imports the SDK)
|
|
|
46
45
|
-> the placeholder is emitted into the chart option, like the {$fn} placeholders
|
|
47
46
|
a chart already emits, and crosses to the app as plain JSON
|
|
48
47
|
-> renderer resolves {$rule} against the point's value -> a colour, drawn
|
|
49
|
-
-> settings panel reads the same {$rule}
|
|
48
|
+
-> settings panel reads the same flat {$rule} value -> controls the user can edit
|
|
50
49
|
```
|
|
51
50
|
|
|
52
51
|
```json
|
|
@@ -64,28 +63,38 @@ Agent writes a rule with these builders (the only consumer that imports the SDK)
|
|
|
64
63
|
`channel: 'color'` says what the rule targets, so a reader sees it without
|
|
65
64
|
inferring from where it sits. `evaluate(rule, { value })` resolves it to a colour
|
|
66
65
|
for the renderer; `describe(rule)` turns it into the controls the settings panel
|
|
67
|
-
shows. Both accept the placeholder or
|
|
68
|
-
of a fixed set of kinds
|
|
69
|
-
|
|
66
|
+
shows. Both accept the placeholder or a bare node. A node can only ever be one
|
|
67
|
+
of a fixed set of kinds. `chartRuleSchema` is the executable Valibot schema for
|
|
68
|
+
that closed set, and `parseChartRule(unknown)` is the SDK-owned runtime boundary
|
|
69
|
+
for persisted or agent-authored JSON.
|
|
70
70
|
|
|
71
71
|
## How it is consumed
|
|
72
72
|
|
|
73
|
-
The
|
|
74
|
-
|
|
75
|
-
at render time. Two ways, and only the first is needed:
|
|
73
|
+
The rule crosses as data — a `{$rule}` placeholder alongside the `{$fn}` ones.
|
|
74
|
+
Consumers have two integration choices:
|
|
76
75
|
|
|
77
|
-
1. **
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
76
|
+
1. **Shared (preferred)** — import `evaluate`, `describe`, and
|
|
77
|
+
`parseChartRule` from the SDK. Parse once when the chart option is hydrated,
|
|
78
|
+
then pass that parsed value to `evaluate` for every datum. The parsed value is
|
|
79
|
+
an immutable validated clone, so repeated evaluation does not re-run schema
|
|
80
|
+
validation.
|
|
81
|
+
2. **Serialized contract** — another language/runtime may interpret the JSON
|
|
82
|
+
independently. It must maintain parity tests against SDK builder output and
|
|
83
|
+
fail closed when the package-level `capabilities.json` contract version is
|
|
84
|
+
unsupported or a serialized rule contains an unknown node kind. Individual
|
|
85
|
+
serialized rules do not carry a version field.
|
|
86
|
+
|
|
87
|
+
Valibot is a production dependency because validation executes in shipped SDK
|
|
88
|
+
code. Node and Deno npm consumers resolve it transitively from the package; it
|
|
89
|
+
is not duplicated in the agent reference or capability manifest.
|
|
82
90
|
|
|
83
91
|
## Where it is going
|
|
84
92
|
|
|
85
|
-
The vocabulary starts small on purpose
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
93
|
+
The vocabulary starts small on purpose. The v1 schema stays flat; features that
|
|
94
|
+
require nesting or a different expression shape must use a new contract version
|
|
95
|
+
rather than silently widening v1. A compatible channel or leaf addition still
|
|
96
|
+
requires one builder, evaluator case, description case, and schema entry.
|
|
97
|
+
Potential future versions may add:
|
|
89
98
|
|
|
90
99
|
- **More channels** — opacity, label visibility (`show`), and the like, added
|
|
91
100
|
alongside `channel: 'color'`.
|
|
@@ -104,11 +113,9 @@ with no change to charts already using it. Planned next, roughly in order:
|
|
|
104
113
|
|
|
105
114
|
## Safety
|
|
106
115
|
|
|
107
|
-
A rule is data, not code
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
Catch `ChartRuleError` — every failure mode is a subclass of it (`UnknownNodeError`,
|
|
114
|
-
`RuleTypeError`, `RuleDepthError`).
|
|
116
|
+
A rule is data, not code: its vocabulary has no callbacks, loops, or side
|
|
117
|
+
effects. The v1 schema is non-recursive, so rule input cannot create recursive
|
|
118
|
+
validation or evaluation work. Runtime parsing also rejects inherited rule
|
|
119
|
+
fields before Valibot reads them, preventing prototype data from supplying
|
|
120
|
+
operands. Malformed rules throw a `ChartRuleError`; callers can use that one
|
|
121
|
+
base class for every rule-specific failure.
|