@rippling/rippling-sdk 0.2.0-alpha.112 → 0.2.0-alpha.113
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 +18 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +18 -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/lib/manifest/definitions/canvas-instance.d.mts +114 -0
- package/lib/manifest/definitions/canvas-instance.d.mts.map +1 -0
- package/lib/manifest/definitions/canvas-instance.d.ts +114 -0
- package/lib/manifest/definitions/canvas-instance.d.ts.map +1 -0
- package/lib/manifest/definitions/canvas-instance.js +31 -0
- package/lib/manifest/definitions/canvas-instance.js.map +1 -0
- package/lib/manifest/definitions/canvas-instance.mjs +28 -0
- package/lib/manifest/definitions/canvas-instance.mjs.map +1 -0
- package/lib/manifest/definitions/index.d.mts +1 -0
- package/lib/manifest/definitions/index.d.mts.map +1 -1
- package/lib/manifest/definitions/index.d.ts +1 -0
- package/lib/manifest/definitions/index.d.ts.map +1 -1
- package/lib/manifest/definitions/index.js +3 -1
- package/lib/manifest/definitions/index.js.map +1 -1
- package/lib/manifest/definitions/index.mjs +1 -0
- package/lib/manifest/definitions/index.mjs.map +1 -1
- package/lib/manifest/manifest-builder.d.mts +1 -1
- package/lib/manifest/manifest-builder.d.mts.map +1 -1
- package/lib/manifest/manifest-builder.d.ts +1 -1
- package/lib/manifest/manifest-builder.d.ts.map +1 -1
- package/lib/manifest/manifest-builder.js.map +1 -1
- package/lib/manifest/manifest-builder.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/custom-objects/custom-objects.d.mts +4 -0
- package/resources/custom-objects/custom-objects.d.mts.map +1 -1
- package/resources/custom-objects/custom-objects.d.ts +4 -0
- package/resources/custom-objects/custom-objects.d.ts.map +1 -1
- package/resources/custom-objects/custom-objects.js +4 -0
- package/resources/custom-objects/custom-objects.js.map +1 -1
- package/resources/custom-objects/custom-objects.mjs +4 -0
- package/resources/custom-objects/custom-objects.mjs.map +1 -1
- package/resources/custom-objects/index.d.mts +1 -0
- package/resources/custom-objects/index.d.mts.map +1 -1
- package/resources/custom-objects/index.d.ts +1 -0
- package/resources/custom-objects/index.d.ts.map +1 -1
- package/resources/custom-objects/index.js +3 -1
- package/resources/custom-objects/index.js.map +1 -1
- package/resources/custom-objects/index.mjs +1 -0
- package/resources/custom-objects/index.mjs.map +1 -1
- package/resources/custom-objects/record-actions.d.mts +98 -0
- package/resources/custom-objects/record-actions.d.mts.map +1 -0
- package/resources/custom-objects/record-actions.d.ts +98 -0
- package/resources/custom-objects/record-actions.d.ts.map +1 -0
- package/resources/custom-objects/record-actions.js +58 -0
- package/resources/custom-objects/record-actions.js.map +1 -0
- package/resources/custom-objects/record-actions.mjs +54 -0
- package/resources/custom-objects/record-actions.mjs.map +1 -0
- package/resources/earnings-inputs.d.mts +14 -2
- package/resources/earnings-inputs.d.mts.map +1 -1
- package/resources/earnings-inputs.d.ts +14 -2
- package/resources/earnings-inputs.d.ts.map +1 -1
- package/resources/earnings-inputs.js +14 -2
- package/resources/earnings-inputs.js.map +1 -1
- package/resources/earnings-inputs.mjs +14 -2
- package/resources/earnings-inputs.mjs.map +1 -1
- package/resources/index.d.mts +3 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +8 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/record-detail-related-records.d.mts +60 -30
- package/resources/record-detail-related-records.d.mts.map +1 -1
- package/resources/record-detail-related-records.d.ts +60 -30
- package/resources/record-detail-related-records.d.ts.map +1 -1
- package/resources/record-details.d.mts +120 -60
- package/resources/record-details.d.mts.map +1 -1
- package/resources/record-details.d.ts +120 -60
- package/resources/record-details.d.ts.map +1 -1
- package/resources/scheduled-payout-labels.d.mts +267 -0
- package/resources/scheduled-payout-labels.d.mts.map +1 -0
- package/resources/scheduled-payout-labels.d.ts +267 -0
- package/resources/scheduled-payout-labels.d.ts.map +1 -0
- package/resources/scheduled-payout-labels.js +151 -0
- package/resources/scheduled-payout-labels.js.map +1 -0
- package/resources/scheduled-payout-labels.mjs +147 -0
- package/resources/scheduled-payout-labels.mjs.map +1 -0
- package/resources/scheduled-payout-types.d.mts +680 -0
- package/resources/scheduled-payout-types.d.mts.map +1 -0
- package/resources/scheduled-payout-types.d.ts +680 -0
- package/resources/scheduled-payout-types.d.ts.map +1 -0
- package/resources/scheduled-payout-types.js +546 -0
- package/resources/scheduled-payout-types.js.map +1 -0
- package/resources/scheduled-payout-types.mjs +542 -0
- package/resources/scheduled-payout-types.mjs.map +1 -0
- package/resources/scheduled-payouts.d.mts +1590 -0
- package/resources/scheduled-payouts.d.mts.map +1 -0
- package/resources/scheduled-payouts.d.ts +1590 -0
- package/resources/scheduled-payouts.d.ts.map +1 -0
- package/resources/scheduled-payouts.js +584 -0
- package/resources/scheduled-payouts.js.map +1 -0
- package/resources/scheduled-payouts.mjs +580 -0
- package/resources/scheduled-payouts.mjs.map +1 -0
- package/src/client.ts +84 -0
- package/src/lib/manifest/definitions/README.md +3 -1
- package/src/lib/manifest/definitions/canvas-instance.ts +143 -0
- package/src/lib/manifest/definitions/index.ts +17 -0
- package/src/lib/manifest/manifest-builder.ts +1 -0
- package/src/resources/custom-objects/custom-objects.ts +16 -0
- package/src/resources/custom-objects/index.ts +6 -0
- package/src/resources/custom-objects/record-actions.ts +125 -0
- package/src/resources/earnings-inputs.ts +14 -2
- package/src/resources/index.ts +33 -0
- package/src/resources/record-detail-related-records.ts +60 -30
- package/src/resources/record-details.ts +120 -60
- package/src/resources/scheduled-payout-labels.ts +373 -0
- package/src/resources/scheduled-payout-types.ts +755 -0
- package/src/resources/scheduled-payouts.ts +1949 -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
|
@@ -56,11 +56,13 @@ Definition-based record writes accept `null` for optional writable custom fields
|
|
|
56
56
|
|
|
57
57
|
`defineManifest` collects dependencies declared by the component's `references` hook, such as an app's pages and their rendering functions. Include other desired children as roots: listing an object does not include every view or action created for it. Raw strings and opaque JSON do not create dependencies.
|
|
58
58
|
|
|
59
|
+
`defineCanvasInstance` accepts Canvas components, actions, and variables in the backend wire format. Grid positions, event handlers, property metadata, media references, and versions are typed; property values and extra grid fields remain JSON because they vary by widget. Each component requires a nested `gridProperties.position`. Media entries must include the source `s3_bucket` and `s3_key` required for installation. For a `ripplingFunction` action, use `properties.values.functionApiName` rather than `functionId`, and pass the matching `defineFunction` definitions in `functions` (or include them as manifest roots). Use `sourceId` only to preserve the source ID of an extracted config; Canvas identity is its API name. Custom App Canvas page references are not supported by `defineApp`.
|
|
60
|
+
|
|
59
61
|
New custom objects require at least one list view, including objects included through lookup dependencies. Add their views as explicit roots.
|
|
60
62
|
|
|
61
63
|
Composition snapshots the existing `{ metadata, components }` wire format. Identical serialized keys are deduplicated; different configs with the same key are rejected. Fields and layouts use object-scoped names; native fields and sections use model-scoped names. Custom-object sections, actions, views, validations, and record-triggered flows require names unique across objects because their backend lookups or installation maps are company-scoped. Authored metadata replaces generated defaults, and base/extended objects share generated layouts.
|
|
62
64
|
|
|
63
|
-
Supply complete API names: objects, categories, nested field and section keys, actions, validations, record-triggered flows, workflows, pages, custom skills, and ACP agents require `__c`. The helpers validate names rather than adding suffixes. Category string references also use the complete API name. Native sections require `__cfs`; native fields require `__cfv2`. Employee custom fields use `applicableGroupId` for an existing applicability group. Owner permissions are created by the backend when it installs the object.
|
|
65
|
+
Supply complete API names: objects, categories, nested field and section keys, actions, validations, record-triggered flows, workflows, pages, Canvas instances, custom skills, and ACP agents require `__c`. The helpers validate names rather than adding suffixes. Category string references also use the complete API name. Native sections require `__cfs`; native fields require `__cfv2`. Employee custom fields use `applicableGroupId` for an existing applicability group. Owner permissions are created by the backend when it installs the object.
|
|
64
66
|
|
|
65
67
|
Definitions with file sources require `compileManifest(manifest, readSource)` or `rippling project export` before JSON serialization. Source files are read only at compilation, unchanged; export does not bundle local imports. `fn.setCode(...)` and `agent.setSource(...)` replace file sources for subsequent manifests. Previously composed manifests keep their source snapshots.
|
|
66
68
|
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { defineComponent, validateCustomApiName, type ComponentDefinition } from './component';
|
|
2
|
+
import type { JsonValue } from '../custom-object-page-layout';
|
|
3
|
+
import type { DefinedFunction } from './function';
|
|
4
|
+
|
|
5
|
+
type CanvasGridFields = {
|
|
6
|
+
x?: number;
|
|
7
|
+
y?: number;
|
|
8
|
+
width?: number;
|
|
9
|
+
height?: number;
|
|
10
|
+
defaultWidth?: number;
|
|
11
|
+
defaultHeight?: number;
|
|
12
|
+
previousWidth?: number;
|
|
13
|
+
previousHeight?: number;
|
|
14
|
+
minWidth?: number;
|
|
15
|
+
minHeight?: number;
|
|
16
|
+
disableVerticalResize?: boolean;
|
|
17
|
+
} & Record<string, JsonValue>;
|
|
18
|
+
|
|
19
|
+
export type CanvasGridPosition = CanvasGridFields & { x: number; y: number; width: number; height: number };
|
|
20
|
+
|
|
21
|
+
export type CanvasGridProperties = CanvasGridFields & { position: CanvasGridPosition };
|
|
22
|
+
|
|
23
|
+
export type CanvasPropertyMeta = { isExpression?: boolean } & Record<string, JsonValue>;
|
|
24
|
+
|
|
25
|
+
export type CanvasEventHandler = {
|
|
26
|
+
event: string;
|
|
27
|
+
type: string;
|
|
28
|
+
properties: Record<string, JsonValue>;
|
|
29
|
+
} & Record<string, JsonValue>;
|
|
30
|
+
|
|
31
|
+
export type CanvasPropertyValues = {
|
|
32
|
+
eventHandlers?: CanvasEventHandler[] | null;
|
|
33
|
+
} & Record<string, JsonValue>;
|
|
34
|
+
|
|
35
|
+
export type CanvasProperties = {
|
|
36
|
+
values?: CanvasPropertyValues | null;
|
|
37
|
+
meta?: Record<string, CanvasPropertyMeta | null> | null;
|
|
38
|
+
} & Record<string, JsonValue>;
|
|
39
|
+
|
|
40
|
+
export type CanvasActionProperties = CanvasProperties & {
|
|
41
|
+
values?: (CanvasPropertyValues & { functionApiName?: string | null }) | null;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export type CanvasMedia = {
|
|
45
|
+
name: string;
|
|
46
|
+
mime_type: string;
|
|
47
|
+
s3_bucket: string;
|
|
48
|
+
s3_key: string;
|
|
49
|
+
/** Decimal string or number; numeric strings are validated by the server during installation. */
|
|
50
|
+
aspect_ratio?: `${number}` | number;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export type CanvasVersion = { major: number; minor: number };
|
|
54
|
+
|
|
55
|
+
export type CanvasComponent = {
|
|
56
|
+
uuid: string;
|
|
57
|
+
slug: string;
|
|
58
|
+
type: string;
|
|
59
|
+
gridProperties: CanvasGridProperties;
|
|
60
|
+
properties?: CanvasProperties;
|
|
61
|
+
parentComponent?: string | null;
|
|
62
|
+
layoutContainer?: string | null;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export type CanvasAction = {
|
|
66
|
+
uuid: string;
|
|
67
|
+
slug: string;
|
|
68
|
+
type: string;
|
|
69
|
+
properties?: CanvasActionProperties;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export type CanvasVariable = {
|
|
73
|
+
uuid: string;
|
|
74
|
+
slug: string;
|
|
75
|
+
type?: string;
|
|
76
|
+
name?: string | null;
|
|
77
|
+
description?: string | null;
|
|
78
|
+
value?: string | null;
|
|
79
|
+
properties: CanvasProperties;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
export interface DefineCanvasInstanceProps {
|
|
83
|
+
apiName: `${string}__c`;
|
|
84
|
+
name: string | null;
|
|
85
|
+
components: CanvasComponent[];
|
|
86
|
+
actions?: CanvasAction[] | null;
|
|
87
|
+
canvasActions?: CanvasAction[] | null;
|
|
88
|
+
variables?: CanvasVariable[] | null;
|
|
89
|
+
media?: Record<string, CanvasMedia> | null;
|
|
90
|
+
version?: CanvasVersion | null;
|
|
91
|
+
/** Source ID from an extracted config; never used as the Canvas identity. */
|
|
92
|
+
sourceId?: string | null;
|
|
93
|
+
/** Function definitions referenced by actions, included in the manifest. */
|
|
94
|
+
functions?: readonly DefinedFunction<any, any>[];
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export interface DefinedCanvasInstance {
|
|
98
|
+
readonly apiName: string;
|
|
99
|
+
toDict(): {
|
|
100
|
+
type: 'CANVAS_INSTANCE';
|
|
101
|
+
api_name: string;
|
|
102
|
+
identity_format_version: 2;
|
|
103
|
+
name: string | null;
|
|
104
|
+
components: CanvasComponent[];
|
|
105
|
+
actions?: CanvasAction[] | null;
|
|
106
|
+
canvas_actions?: CanvasAction[] | null;
|
|
107
|
+
variables?: CanvasVariable[] | null;
|
|
108
|
+
media?: Record<string, CanvasMedia> | null;
|
|
109
|
+
version?: CanvasVersion | null;
|
|
110
|
+
obj_id?: string | null;
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/** Defines Canvas metadata. Nested components and actions use the backend's wire format. */
|
|
115
|
+
export function defineCanvasInstance(props: DefineCanvasInstanceProps): DefinedCanvasInstance {
|
|
116
|
+
const { apiName } = props;
|
|
117
|
+
validateCustomApiName(apiName);
|
|
118
|
+
return canvasInstanceComponent.register(
|
|
119
|
+
{
|
|
120
|
+
apiName,
|
|
121
|
+
toDict: () => ({
|
|
122
|
+
type: 'CANVAS_INSTANCE' as const,
|
|
123
|
+
api_name: apiName,
|
|
124
|
+
identity_format_version: 2 as const,
|
|
125
|
+
name: props.name,
|
|
126
|
+
components: props.components,
|
|
127
|
+
...(props.actions === undefined ? {} : { actions: props.actions }),
|
|
128
|
+
...(props.canvasActions === undefined ? {} : { canvas_actions: props.canvasActions }),
|
|
129
|
+
...(props.variables === undefined ? {} : { variables: props.variables }),
|
|
130
|
+
...(props.media === undefined ? {} : { media: props.media }),
|
|
131
|
+
...(props.version === undefined ? {} : { version: props.version }),
|
|
132
|
+
...(props.sourceId === undefined ? {} : { obj_id: props.sourceId }),
|
|
133
|
+
}),
|
|
134
|
+
},
|
|
135
|
+
props,
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
const canvasInstanceComponent: ComponentDefinition<typeof defineCanvasInstance> = defineComponent({
|
|
140
|
+
type: 'CANVAS_INSTANCE',
|
|
141
|
+
define: defineCanvasInstance,
|
|
142
|
+
references: (_definition, props) => () => props.functions ?? [],
|
|
143
|
+
});
|
|
@@ -18,6 +18,23 @@ export {
|
|
|
18
18
|
type AgentClient,
|
|
19
19
|
} from './agent';
|
|
20
20
|
export { defineApp } from './app';
|
|
21
|
+
export {
|
|
22
|
+
defineCanvasInstance,
|
|
23
|
+
type CanvasAction,
|
|
24
|
+
type CanvasActionProperties,
|
|
25
|
+
type CanvasComponent,
|
|
26
|
+
type CanvasEventHandler,
|
|
27
|
+
type CanvasGridPosition,
|
|
28
|
+
type CanvasGridProperties,
|
|
29
|
+
type CanvasMedia,
|
|
30
|
+
type CanvasProperties,
|
|
31
|
+
type CanvasPropertyMeta,
|
|
32
|
+
type CanvasPropertyValues,
|
|
33
|
+
type CanvasVariable,
|
|
34
|
+
type CanvasVersion,
|
|
35
|
+
type DefineCanvasInstanceProps,
|
|
36
|
+
type DefinedCanvasInstance,
|
|
37
|
+
} from './canvas-instance';
|
|
21
38
|
export { defineCategory, defineCustomObjectCategory, type DefineCustomObjectCategoryProps } from './category';
|
|
22
39
|
export { defineCustomField, type DefineCustomFieldProps } from './custom-field';
|
|
23
40
|
export {
|
|
@@ -10,6 +10,13 @@ import {
|
|
|
10
10
|
FieldUpdateParams,
|
|
11
11
|
Fields,
|
|
12
12
|
} from './fields';
|
|
13
|
+
import * as RecordActionsAPI from './record-actions';
|
|
14
|
+
import {
|
|
15
|
+
RecordActionListParams,
|
|
16
|
+
RecordActionListResponse,
|
|
17
|
+
RecordActionListResponsesPageCursorURL,
|
|
18
|
+
RecordActions,
|
|
19
|
+
} from './record-actions';
|
|
13
20
|
import * as ListViewsAPI from './list-views/list-views';
|
|
14
21
|
import {
|
|
15
22
|
ListViewCreateParams,
|
|
@@ -54,6 +61,7 @@ export class CustomObjects extends APIResource {
|
|
|
54
61
|
fields: FieldsAPI.Fields = new FieldsAPI.Fields(this._client);
|
|
55
62
|
records: RecordsAPI.Records = new RecordsAPI.Records(this._client);
|
|
56
63
|
listViews: ListViewsAPI.ListViews = new ListViewsAPI.ListViews(this._client);
|
|
64
|
+
recordActions: RecordActionsAPI.RecordActions = new RecordActionsAPI.RecordActions(this._client);
|
|
57
65
|
|
|
58
66
|
/**
|
|
59
67
|
* A list of custom objects.
|
|
@@ -395,6 +403,7 @@ export interface CustomObjectUpdateParams {
|
|
|
395
403
|
CustomObjects.Fields = Fields;
|
|
396
404
|
CustomObjects.Records = Records;
|
|
397
405
|
CustomObjects.ListViews = ListViews;
|
|
406
|
+
CustomObjects.RecordActions = RecordActions;
|
|
398
407
|
|
|
399
408
|
export declare namespace CustomObjects {
|
|
400
409
|
export {
|
|
@@ -444,4 +453,11 @@ export declare namespace CustomObjects {
|
|
|
444
453
|
type ListViewCreateParams as ListViewCreateParams,
|
|
445
454
|
type ListViewUpdateParams as ListViewUpdateParams,
|
|
446
455
|
};
|
|
456
|
+
|
|
457
|
+
export {
|
|
458
|
+
RecordActions as RecordActions,
|
|
459
|
+
type RecordActionListResponse as RecordActionListResponse,
|
|
460
|
+
type RecordActionListResponsesPageCursorURL as RecordActionListResponsesPageCursorURL,
|
|
461
|
+
type RecordActionListParams as RecordActionListParams,
|
|
462
|
+
};
|
|
447
463
|
}
|
|
@@ -27,6 +27,12 @@ export {
|
|
|
27
27
|
type ListViewUpdateParams,
|
|
28
28
|
type ListViewListResponsesPageCursorURL,
|
|
29
29
|
} from './list-views/index';
|
|
30
|
+
export {
|
|
31
|
+
RecordActions,
|
|
32
|
+
type RecordActionListResponse,
|
|
33
|
+
type RecordActionListParams,
|
|
34
|
+
type RecordActionListResponsesPageCursorURL,
|
|
35
|
+
} from './record-actions';
|
|
30
36
|
export {
|
|
31
37
|
Records,
|
|
32
38
|
type CustomObjectDataRow,
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { PageCursorURL, PagePromise } from '../../core/pagination';
|
|
5
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
import { path } from '../../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Custom object datarows defined by the company
|
|
10
|
+
*/
|
|
11
|
+
export class RecordActions extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Lists callable native actions for this Custom Object. Execution remains
|
|
14
|
+
* separately authorized.
|
|
15
|
+
*
|
|
16
|
+
* @example SDK usage
|
|
17
|
+
* ```ts
|
|
18
|
+
* // Automatically fetches more pages as needed.
|
|
19
|
+
* for await (const recordActionListResponse of client.customObjects.recordActions.list(
|
|
20
|
+
* 'custom_object_api_name',
|
|
21
|
+
* )) {
|
|
22
|
+
* // ...
|
|
23
|
+
* }
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @example HTTP
|
|
27
|
+
* Representative request and response shapes.
|
|
28
|
+
* ```
|
|
29
|
+
* GET /custom-objects/{custom_object_api_name}/record-actions/?limit=100&cursor=cursor&visibility_preference=LIST_VIEW HTTP/1.1
|
|
30
|
+
* Host: rest.ripplingapis.com
|
|
31
|
+
* Accept: application/json
|
|
32
|
+
* Rippling-Api-Version: 2024-08-01
|
|
33
|
+
*
|
|
34
|
+
* HTTP/1.1 200 OK
|
|
35
|
+
* Content-Type: application/json
|
|
36
|
+
*
|
|
37
|
+
* {
|
|
38
|
+
* "results": [
|
|
39
|
+
* {
|
|
40
|
+
* "id": "string",
|
|
41
|
+
* "api_name": "string",
|
|
42
|
+
* "name": "string",
|
|
43
|
+
* "function_api_name": "string",
|
|
44
|
+
* "visibility_preferences": [
|
|
45
|
+
* "LIST_VIEW"
|
|
46
|
+
* ]
|
|
47
|
+
* }
|
|
48
|
+
* ],
|
|
49
|
+
* "next_link": "string"
|
|
50
|
+
* }
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
list(
|
|
54
|
+
customObjectAPIName: string,
|
|
55
|
+
query: RecordActionListParams | null | undefined = {},
|
|
56
|
+
options?: RequestOptions,
|
|
57
|
+
): PagePromise<RecordActionListResponsesPageCursorURL, RecordActionListResponse> {
|
|
58
|
+
return this._client.getAPIList(
|
|
59
|
+
path`/custom-objects/${customObjectAPIName}/record-actions/`,
|
|
60
|
+
PageCursorURL<RecordActionListResponse>,
|
|
61
|
+
{ query, ...options },
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export type RecordActionListResponsesPageCursorURL = PageCursorURL<RecordActionListResponse>;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* A configured action the caller can attempt through the existing Function
|
|
70
|
+
* execution API.
|
|
71
|
+
*/
|
|
72
|
+
export interface RecordActionListResponse {
|
|
73
|
+
/**
|
|
74
|
+
* Stable native ObjectAction identifier.
|
|
75
|
+
*/
|
|
76
|
+
id: string;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Action API name; null for legacy actions.
|
|
80
|
+
*/
|
|
81
|
+
api_name: string | null;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Associated Function API name for the unchanged Function execution endpoints.
|
|
85
|
+
* Discovery does not grant execution or execution-read permission.
|
|
86
|
+
*/
|
|
87
|
+
function_api_name: string;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Action display label.
|
|
91
|
+
*/
|
|
92
|
+
name: string;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Configured action placements: LIST_VIEW appears in an object grid; DETAIL_VIEW
|
|
96
|
+
* appears on a record page.
|
|
97
|
+
*/
|
|
98
|
+
visibility_preferences: Array<'LIST_VIEW' | 'DETAIL_VIEW'>;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export interface RecordActionListParams {
|
|
102
|
+
/**
|
|
103
|
+
* Opaque cursor from the previous response next_link.
|
|
104
|
+
*/
|
|
105
|
+
cursor?: string;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Maximum number of authorized actions to return. Defaults to 100.
|
|
109
|
+
*/
|
|
110
|
+
limit?: number;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Match a configured placement: LIST_VIEW appears in an object grid; DETAIL_VIEW
|
|
114
|
+
* appears on a record page. Omit to return all authorized actions for this object.
|
|
115
|
+
*/
|
|
116
|
+
visibility_preference?: 'LIST_VIEW' | 'DETAIL_VIEW';
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export declare namespace RecordActions {
|
|
120
|
+
export {
|
|
121
|
+
type RecordActionListResponse as RecordActionListResponse,
|
|
122
|
+
type RecordActionListResponsesPageCursorURL as RecordActionListResponsesPageCursorURL,
|
|
123
|
+
type RecordActionListParams as RecordActionListParams,
|
|
124
|
+
};
|
|
125
|
+
}
|
|
@@ -72,7 +72,13 @@ export class EarningsInputs extends APIResource {
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
|
-
* Create
|
|
75
|
+
* Create or update earnings-inputs for one worker. Requires Global Payroll admin
|
|
76
|
+
* write permission for the company and for the target worker. Each earnings line
|
|
77
|
+
* requires an `external_id`, which identifies the line across requests: resending
|
|
78
|
+
* a line with the same `external_id` and identical values writes nothing, and
|
|
79
|
+
* resending it with different values records a new version that replaces the
|
|
80
|
+
* previous one (last write wins). Retrying a request is therefore safe. There is
|
|
81
|
+
* no separate idempotency key.
|
|
76
82
|
*
|
|
77
83
|
* @example HTTP
|
|
78
84
|
* Representative request and response shapes.
|
|
@@ -117,7 +123,13 @@ export class EarningsInputs extends APIResource {
|
|
|
117
123
|
}
|
|
118
124
|
|
|
119
125
|
/**
|
|
120
|
-
* Delete
|
|
126
|
+
* Delete an earnings-input. Requires Global Payroll admin write permission for the
|
|
127
|
+
* company and for the earnings-input's worker. Deletion is a soft delete: the
|
|
128
|
+
* earnings-input is removed from payroll and is still returned by
|
|
129
|
+
* `GET /earnings-inputs/` with `filter=include_deleted eq true`. Deleting it again
|
|
130
|
+
* returns 404 `PAYROLL_EARNING_INPUT_ALREADY_DELETED`, so a retried delete is safe
|
|
131
|
+
* to treat as done. An earnings-input on an approved or paid payroll run cannot be
|
|
132
|
+
* deleted and returns 409 `PAYROLL_EARNING_ALREADY_ASSIGNED`.
|
|
121
133
|
*
|
|
122
134
|
* @example HTTP
|
|
123
135
|
* Representative request and response shapes.
|
package/src/resources/index.ts
CHANGED
|
@@ -635,6 +635,39 @@ export {
|
|
|
635
635
|
type ScheduledJobAssignmentListParams,
|
|
636
636
|
type ScheduledJobAssignmentListResponsesPageCursorURL,
|
|
637
637
|
} from './scheduled-job-assignments';
|
|
638
|
+
export {
|
|
639
|
+
ScheduledPayoutLabels,
|
|
640
|
+
type ScheduledPayoutLabelListResponse,
|
|
641
|
+
type ScheduledPayoutLabelCreateResponse,
|
|
642
|
+
type ScheduledPayoutLabelRetrieveResponse,
|
|
643
|
+
type ScheduledPayoutLabelUpdateResponse,
|
|
644
|
+
type ScheduledPayoutLabelListParams,
|
|
645
|
+
type ScheduledPayoutLabelCreateParams,
|
|
646
|
+
type ScheduledPayoutLabelUpdateParams,
|
|
647
|
+
type ScheduledPayoutLabelListResponsesPageCursorURL,
|
|
648
|
+
} from './scheduled-payout-labels';
|
|
649
|
+
export {
|
|
650
|
+
ScheduledPayoutTypes,
|
|
651
|
+
type ScheduledPayoutTypeListResponse,
|
|
652
|
+
type ScheduledPayoutTypeCreateResponse,
|
|
653
|
+
type ScheduledPayoutTypeRetrieveResponse,
|
|
654
|
+
type ScheduledPayoutTypeUpdateResponse,
|
|
655
|
+
type ScheduledPayoutTypeListParams,
|
|
656
|
+
type ScheduledPayoutTypeCreateParams,
|
|
657
|
+
type ScheduledPayoutTypeUpdateParams,
|
|
658
|
+
type ScheduledPayoutTypeListResponsesPageCursorURL,
|
|
659
|
+
} from './scheduled-payout-types';
|
|
660
|
+
export {
|
|
661
|
+
ScheduledPayouts,
|
|
662
|
+
type ScheduledPayoutListResponse,
|
|
663
|
+
type ScheduledPayoutCreateResponse,
|
|
664
|
+
type ScheduledPayoutRetrieveResponse,
|
|
665
|
+
type ScheduledPayoutCancelResponse,
|
|
666
|
+
type ScheduledPayoutListParams,
|
|
667
|
+
type ScheduledPayoutCreateParams,
|
|
668
|
+
type ScheduledPayoutCancelParams,
|
|
669
|
+
type ScheduledPayoutListResponsesPageCursorURL,
|
|
670
|
+
} from './scheduled-payouts';
|
|
638
671
|
export {
|
|
639
672
|
Schedules,
|
|
640
673
|
type ScheduleListResponse,
|
|
@@ -188,8 +188,10 @@ export namespace RecordDetailRelatedRecordListResponse {
|
|
|
188
188
|
max_length?: number | null;
|
|
189
189
|
|
|
190
190
|
/**
|
|
191
|
-
* Target name for a supported reference
|
|
192
|
-
* ending in \_\_c.
|
|
191
|
+
* Target object API name for a supported reference, such as Employee, Department,
|
|
192
|
+
* or a Custom Object API name ending in \_\_c. The available native targets depend
|
|
193
|
+
* on the relationships configured in the saved layout and the caller's access.
|
|
194
|
+
* Null for other fields and unsupported reference targets.
|
|
193
195
|
*/
|
|
194
196
|
reference_object?: string | null;
|
|
195
197
|
}
|
|
@@ -286,8 +288,10 @@ export namespace RecordDetailRelatedRecordListResponse {
|
|
|
286
288
|
num_of_decimal_places?: number | null;
|
|
287
289
|
|
|
288
290
|
/**
|
|
289
|
-
* Target name for a supported reference
|
|
290
|
-
* ending in \_\_c.
|
|
291
|
+
* Target object API name for a supported reference, such as Employee, Department,
|
|
292
|
+
* or a Custom Object API name ending in \_\_c. The available native targets depend
|
|
293
|
+
* on the relationships configured in the saved layout and the caller's access.
|
|
294
|
+
* Null for other fields and unsupported reference targets.
|
|
291
295
|
*/
|
|
292
296
|
reference_object?: string | null;
|
|
293
297
|
}
|
|
@@ -378,8 +382,10 @@ export namespace RecordDetailRelatedRecordListResponse {
|
|
|
378
382
|
viewable: boolean;
|
|
379
383
|
|
|
380
384
|
/**
|
|
381
|
-
* Target name for a supported reference
|
|
382
|
-
* ending in \_\_c.
|
|
385
|
+
* Target object API name for a supported reference, such as Employee, Department,
|
|
386
|
+
* or a Custom Object API name ending in \_\_c. The available native targets depend
|
|
387
|
+
* on the relationships configured in the saved layout and the caller's access.
|
|
388
|
+
* Null for other fields and unsupported reference targets.
|
|
383
389
|
*/
|
|
384
390
|
reference_object?: string | null;
|
|
385
391
|
}
|
|
@@ -471,8 +477,10 @@ export namespace RecordDetailRelatedRecordListResponse {
|
|
|
471
477
|
viewable: boolean;
|
|
472
478
|
|
|
473
479
|
/**
|
|
474
|
-
* Target name for a supported reference
|
|
475
|
-
* ending in \_\_c.
|
|
480
|
+
* Target object API name for a supported reference, such as Employee, Department,
|
|
481
|
+
* or a Custom Object API name ending in \_\_c. The available native targets depend
|
|
482
|
+
* on the relationships configured in the saved layout and the caller's access.
|
|
483
|
+
* Null for other fields and unsupported reference targets.
|
|
476
484
|
*/
|
|
477
485
|
reference_object?: string | null;
|
|
478
486
|
}
|
|
@@ -565,8 +573,10 @@ export namespace RecordDetailRelatedRecordListResponse {
|
|
|
565
573
|
viewable: boolean;
|
|
566
574
|
|
|
567
575
|
/**
|
|
568
|
-
* Target name for a supported reference
|
|
569
|
-
* ending in \_\_c.
|
|
576
|
+
* Target object API name for a supported reference, such as Employee, Department,
|
|
577
|
+
* or a Custom Object API name ending in \_\_c. The available native targets depend
|
|
578
|
+
* on the relationships configured in the saved layout and the caller's access.
|
|
579
|
+
* Null for other fields and unsupported reference targets.
|
|
570
580
|
*/
|
|
571
581
|
reference_object?: string | null;
|
|
572
582
|
}
|
|
@@ -669,8 +679,10 @@ export namespace RecordDetailRelatedRecordListResponse {
|
|
|
669
679
|
num_of_decimal_places?: number | null;
|
|
670
680
|
|
|
671
681
|
/**
|
|
672
|
-
* Target name for a supported reference
|
|
673
|
-
* ending in \_\_c.
|
|
682
|
+
* Target object API name for a supported reference, such as Employee, Department,
|
|
683
|
+
* or a Custom Object API name ending in \_\_c. The available native targets depend
|
|
684
|
+
* on the relationships configured in the saved layout and the caller's access.
|
|
685
|
+
* Null for other fields and unsupported reference targets.
|
|
674
686
|
*/
|
|
675
687
|
reference_object?: string | null;
|
|
676
688
|
}
|
|
@@ -779,8 +791,10 @@ export namespace RecordDetailRelatedRecordListResponse {
|
|
|
779
791
|
viewable: boolean;
|
|
780
792
|
|
|
781
793
|
/**
|
|
782
|
-
* Target name for a supported reference
|
|
783
|
-
* ending in \_\_c.
|
|
794
|
+
* Target object API name for a supported reference, such as Employee, Department,
|
|
795
|
+
* or a Custom Object API name ending in \_\_c. The available native targets depend
|
|
796
|
+
* on the relationships configured in the saved layout and the caller's access.
|
|
797
|
+
* Null for other fields and unsupported reference targets.
|
|
784
798
|
*/
|
|
785
799
|
reference_object?: string | null;
|
|
786
800
|
}
|
|
@@ -872,8 +886,10 @@ export namespace RecordDetailRelatedRecordListResponse {
|
|
|
872
886
|
viewable: boolean;
|
|
873
887
|
|
|
874
888
|
/**
|
|
875
|
-
* Target name for a supported reference
|
|
876
|
-
* ending in \_\_c.
|
|
889
|
+
* Target object API name for a supported reference, such as Employee, Department,
|
|
890
|
+
* or a Custom Object API name ending in \_\_c. The available native targets depend
|
|
891
|
+
* on the relationships configured in the saved layout and the caller's access.
|
|
892
|
+
* Null for other fields and unsupported reference targets.
|
|
877
893
|
*/
|
|
878
894
|
reference_object?: string | null;
|
|
879
895
|
}
|
|
@@ -945,8 +961,10 @@ export namespace RecordDetailRelatedRecordListResponse {
|
|
|
945
961
|
|
|
946
962
|
/**
|
|
947
963
|
* Selected record identifier in the reference_object target; null when empty or
|
|
948
|
-
* masked.
|
|
949
|
-
*
|
|
964
|
+
* masked. Retrieve Employee records through GET /workers/{id}/, Department records
|
|
965
|
+
* through GET /departments/{id}/, and Custom Object records through GET
|
|
966
|
+
* /custom-objects/{custom_object_api_name}/records/{id}/. Other native targets may
|
|
967
|
+
* not have a public record endpoint; use display for their presentation.
|
|
950
968
|
*/
|
|
951
969
|
value: string | null;
|
|
952
970
|
|
|
@@ -973,8 +991,10 @@ export namespace RecordDetailRelatedRecordListResponse {
|
|
|
973
991
|
display?: DetailReferenceField.ReferenceDisplay | null;
|
|
974
992
|
|
|
975
993
|
/**
|
|
976
|
-
* Target name for a supported reference
|
|
977
|
-
* ending in \_\_c.
|
|
994
|
+
* Target object API name for a supported reference, such as Employee, Department,
|
|
995
|
+
* or a Custom Object API name ending in \_\_c. The available native targets depend
|
|
996
|
+
* on the relationships configured in the saved layout and the caller's access.
|
|
997
|
+
* Null for other fields and unsupported reference targets.
|
|
978
998
|
*/
|
|
979
999
|
reference_object?: string | null;
|
|
980
1000
|
}
|
|
@@ -1068,8 +1088,10 @@ export namespace RecordDetailRelatedRecordListResponse {
|
|
|
1068
1088
|
|
|
1069
1089
|
/**
|
|
1070
1090
|
* Selected record identifier in the reference_object target; null when empty or
|
|
1071
|
-
* masked.
|
|
1072
|
-
*
|
|
1091
|
+
* masked. Retrieve Employee records through GET /workers/{id}/, Department records
|
|
1092
|
+
* through GET /departments/{id}/, and Custom Object records through GET
|
|
1093
|
+
* /custom-objects/{custom_object_api_name}/records/{id}/. Other native targets may
|
|
1094
|
+
* not have a public record endpoint; use display for their presentation.
|
|
1073
1095
|
*/
|
|
1074
1096
|
value: string | null;
|
|
1075
1097
|
|
|
@@ -1096,8 +1118,10 @@ export namespace RecordDetailRelatedRecordListResponse {
|
|
|
1096
1118
|
display?: DetailNativeReferenceField.ReferenceDisplay | null;
|
|
1097
1119
|
|
|
1098
1120
|
/**
|
|
1099
|
-
* Target name for a supported reference
|
|
1100
|
-
* ending in \_\_c.
|
|
1121
|
+
* Target object API name for a supported reference, such as Employee, Department,
|
|
1122
|
+
* or a Custom Object API name ending in \_\_c. The available native targets depend
|
|
1123
|
+
* on the relationships configured in the saved layout and the caller's access.
|
|
1124
|
+
* Null for other fields and unsupported reference targets.
|
|
1101
1125
|
*/
|
|
1102
1126
|
reference_object?: string | null;
|
|
1103
1127
|
}
|
|
@@ -1216,8 +1240,10 @@ export namespace RecordDetailRelatedRecordListResponse {
|
|
|
1216
1240
|
num_of_decimal_places?: number | null;
|
|
1217
1241
|
|
|
1218
1242
|
/**
|
|
1219
|
-
* Target name for a supported reference
|
|
1220
|
-
* ending in \_\_c.
|
|
1243
|
+
* Target object API name for a supported reference, such as Employee, Department,
|
|
1244
|
+
* or a Custom Object API name ending in \_\_c. The available native targets depend
|
|
1245
|
+
* on the relationships configured in the saved layout and the caller's access.
|
|
1246
|
+
* Null for other fields and unsupported reference targets.
|
|
1221
1247
|
*/
|
|
1222
1248
|
reference_object?: string | null;
|
|
1223
1249
|
}
|
|
@@ -1308,8 +1334,10 @@ export namespace RecordDetailRelatedRecordListResponse {
|
|
|
1308
1334
|
viewable: boolean;
|
|
1309
1335
|
|
|
1310
1336
|
/**
|
|
1311
|
-
* Target name for a supported reference
|
|
1312
|
-
* ending in \_\_c.
|
|
1337
|
+
* Target object API name for a supported reference, such as Employee, Department,
|
|
1338
|
+
* or a Custom Object API name ending in \_\_c. The available native targets depend
|
|
1339
|
+
* on the relationships configured in the saved layout and the caller's access.
|
|
1340
|
+
* Null for other fields and unsupported reference targets.
|
|
1313
1341
|
*/
|
|
1314
1342
|
reference_object?: string | null;
|
|
1315
1343
|
}
|
|
@@ -1402,8 +1430,10 @@ export namespace RecordDetailRelatedRecordListResponse {
|
|
|
1402
1430
|
viewable: boolean;
|
|
1403
1431
|
|
|
1404
1432
|
/**
|
|
1405
|
-
* Target name for a supported reference
|
|
1406
|
-
* ending in \_\_c.
|
|
1433
|
+
* Target object API name for a supported reference, such as Employee, Department,
|
|
1434
|
+
* or a Custom Object API name ending in \_\_c. The available native targets depend
|
|
1435
|
+
* on the relationships configured in the saved layout and the caller's access.
|
|
1436
|
+
* Null for other fields and unsupported reference targets.
|
|
1407
1437
|
*/
|
|
1408
1438
|
reference_object?: string | null;
|
|
1409
1439
|
}
|