@rippling/rippling-sdk 0.2.0-alpha.91 → 0.2.0-alpha.93
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 +6 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -0
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/internal/tslib.js +4 -0
- package/lib/manifest/acp-agent-source-files.d.mts +10 -0
- package/lib/manifest/acp-agent-source-files.d.mts.map +1 -0
- package/lib/manifest/acp-agent-source-files.d.ts +10 -0
- package/lib/manifest/acp-agent-source-files.d.ts.map +1 -0
- package/lib/manifest/acp-agent-source-files.js +49 -0
- package/lib/manifest/acp-agent-source-files.js.map +1 -0
- package/lib/manifest/acp-agent-source-files.mjs +45 -0
- package/lib/manifest/acp-agent-source-files.mjs.map +1 -0
- package/lib/manifest/acp-agent.d.mts +3 -3
- package/lib/manifest/acp-agent.d.mts.map +1 -1
- package/lib/manifest/acp-agent.d.ts +3 -3
- package/lib/manifest/acp-agent.d.ts.map +1 -1
- package/lib/manifest/acp-agent.js +8 -12
- package/lib/manifest/acp-agent.js.map +1 -1
- package/lib/manifest/acp-agent.mjs +8 -12
- package/lib/manifest/acp-agent.mjs.map +1 -1
- package/lib/manifest/node.d.mts +4 -0
- package/lib/manifest/node.d.mts.map +1 -0
- package/lib/manifest/node.d.ts +4 -0
- package/lib/manifest/node.d.ts.map +1 -0
- package/lib/manifest/node.js +9 -0
- package/lib/manifest/node.js.map +1 -0
- package/lib/manifest/node.mjs +4 -0
- package/lib/manifest/node.mjs.map +1 -0
- package/package.json +1 -1
- 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 +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/variable-compensation-payout-writes.d.mts +126 -0
- package/resources/variable-compensation-payout-writes.d.mts.map +1 -0
- package/resources/variable-compensation-payout-writes.d.ts +126 -0
- package/resources/variable-compensation-payout-writes.d.ts.map +1 -0
- package/resources/variable-compensation-payout-writes.js +18 -0
- package/resources/variable-compensation-payout-writes.js.map +1 -0
- package/resources/variable-compensation-payout-writes.mjs +14 -0
- package/resources/variable-compensation-payout-writes.mjs.map +1 -0
- package/src/client.ts +17 -0
- package/src/lib/manifest/acp-agent-source-files.ts +52 -0
- package/src/lib/manifest/acp-agent.ts +12 -16
- package/src/lib/manifest/node.ts +4 -0
- package/src/resources/index.ts +5 -0
- package/src/resources/variable-compensation-payout-writes.ts +160 -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
|
@@ -35,8 +35,8 @@ export interface ACPAgentProps {
|
|
|
35
35
|
description: string;
|
|
36
36
|
/** Identity used when the agent runs. ACP Composer supports only `runner`. */
|
|
37
37
|
identityMode: ACPAgentIdentityMode;
|
|
38
|
-
/**
|
|
39
|
-
eventTriggers
|
|
38
|
+
/** Trigger configuration managed by this manifest. Pass [] for no triggers. */
|
|
39
|
+
eventTriggers: ACPAgentEventTrigger[];
|
|
40
40
|
/** Source files for the agent's latest revision. */
|
|
41
41
|
files: ACPAgentSourceFile[];
|
|
42
42
|
/** Path of the source file that starts the agent. */
|
|
@@ -63,7 +63,7 @@ export class ACPAgent {
|
|
|
63
63
|
private readonly _apiName: string;
|
|
64
64
|
private _name: string;
|
|
65
65
|
private _description: string;
|
|
66
|
-
private _eventTriggers: ACPAgentEventTrigger[]
|
|
66
|
+
private _eventTriggers: ACPAgentEventTrigger[];
|
|
67
67
|
private _files: ACPAgentSourceFile[];
|
|
68
68
|
private _entrypoint: string;
|
|
69
69
|
|
|
@@ -78,7 +78,7 @@ export class ACPAgent {
|
|
|
78
78
|
this._apiName = props.apiName;
|
|
79
79
|
this._name = props.name;
|
|
80
80
|
this._description = props.description;
|
|
81
|
-
this._eventTriggers =
|
|
81
|
+
this._eventTriggers = [...props.eventTriggers];
|
|
82
82
|
this._files = [...props.files];
|
|
83
83
|
this._entrypoint = props.entrypoint;
|
|
84
84
|
scope._register(this);
|
|
@@ -117,9 +117,7 @@ export class ACPAgent {
|
|
|
117
117
|
}),
|
|
118
118
|
),
|
|
119
119
|
entrypoint: requireStringComponentField(component, 'entrypoint', ACPAgent.componentType),
|
|
120
|
-
|
|
121
|
-
if (component['event_triggers'] !== undefined) {
|
|
122
|
-
props.eventTriggers = requireArrayComponentField<Record<string, any>>(
|
|
120
|
+
eventTriggers: requireArrayComponentField<Record<string, any>>(
|
|
123
121
|
component,
|
|
124
122
|
'event_triggers',
|
|
125
123
|
ACPAgent.componentType,
|
|
@@ -131,8 +129,8 @@ export class ACPAgent {
|
|
|
131
129
|
}),
|
|
132
130
|
promptTemplate: requireStringComponentField(trigger, 'prompt_template', ACPAgent.componentType),
|
|
133
131
|
enabled: requireBooleanComponentField(trigger, 'enabled', ACPAgent.componentType),
|
|
134
|
-
}))
|
|
135
|
-
}
|
|
132
|
+
})),
|
|
133
|
+
};
|
|
136
134
|
return new ACPAgent(
|
|
137
135
|
scope,
|
|
138
136
|
props,
|
|
@@ -165,8 +163,8 @@ export class ACPAgent {
|
|
|
165
163
|
return this;
|
|
166
164
|
}
|
|
167
165
|
|
|
168
|
-
setEventTriggers(eventTriggers: ACPAgentEventTrigger[]
|
|
169
|
-
this._eventTriggers =
|
|
166
|
+
setEventTriggers(eventTriggers: ACPAgentEventTrigger[]): this {
|
|
167
|
+
this._eventTriggers = [...eventTriggers];
|
|
170
168
|
return this;
|
|
171
169
|
}
|
|
172
170
|
|
|
@@ -191,17 +189,15 @@ export class ACPAgent {
|
|
|
191
189
|
kind: file.kind,
|
|
192
190
|
})),
|
|
193
191
|
entrypoint: this._entrypoint,
|
|
194
|
-
|
|
195
|
-
if (this._eventTriggers !== undefined) {
|
|
196
|
-
component['event_triggers'] = this._eventTriggers.map((trigger) => ({
|
|
192
|
+
event_triggers: this._eventTriggers.map((trigger) => ({
|
|
197
193
|
type: ACPAgent.componentType,
|
|
198
194
|
key: trigger.key,
|
|
199
195
|
event_key: trigger.eventKey,
|
|
200
196
|
rql_formula: trigger.rqlFormula,
|
|
201
197
|
prompt_template: trigger.promptTemplate,
|
|
202
198
|
enabled: trigger.enabled,
|
|
203
|
-
}))
|
|
204
|
-
}
|
|
199
|
+
})),
|
|
200
|
+
};
|
|
205
201
|
return component;
|
|
206
202
|
}
|
|
207
203
|
}
|
package/src/resources/index.ts
CHANGED
|
@@ -612,6 +612,11 @@ export {
|
|
|
612
612
|
type UserListParams,
|
|
613
613
|
type UsersPageCursorURL,
|
|
614
614
|
} from './users';
|
|
615
|
+
export {
|
|
616
|
+
VariableCompensationPayoutWrites,
|
|
617
|
+
type VariableCompensationPayoutWriteCreateResponse,
|
|
618
|
+
type VariableCompensationPayoutWriteCreateParams,
|
|
619
|
+
} from './variable-compensation-payout-writes';
|
|
615
620
|
export {
|
|
616
621
|
WorkLocations,
|
|
617
622
|
type WorkLocation,
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Compensation associated with workers
|
|
9
|
+
*/
|
|
10
|
+
export class VariableCompensationPayoutWrites extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Create a new variable compensation payout write
|
|
13
|
+
*/
|
|
14
|
+
create(
|
|
15
|
+
body: VariableCompensationPayoutWriteCreateParams,
|
|
16
|
+
options?: RequestOptions,
|
|
17
|
+
): APIPromise<VariableCompensationPayoutWriteCreateResponse> {
|
|
18
|
+
return this._client.post('/variable-compensation-payout-writes/', { body, ...options });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface VariableCompensationPayoutWriteCreateResponse {
|
|
23
|
+
/**
|
|
24
|
+
* Identifier field
|
|
25
|
+
*/
|
|
26
|
+
id: string;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Payout amount.
|
|
30
|
+
*/
|
|
31
|
+
amount_base: VariableCompensationPayoutWriteCreateResponse.AmountBase;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Record creation date
|
|
35
|
+
*/
|
|
36
|
+
created_at: string;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* RoleWithCompany ID for the payout recipient.
|
|
40
|
+
*/
|
|
41
|
+
payee_id: string;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Company payout type key.
|
|
45
|
+
*/
|
|
46
|
+
payment_type: string;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Date on which the payout is scheduled.
|
|
50
|
+
*/
|
|
51
|
+
scheduled_date: string;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Record update date
|
|
55
|
+
*/
|
|
56
|
+
updated_at: string;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Optional markdown summary of the eligibility conditions.
|
|
60
|
+
*/
|
|
61
|
+
ai_conditions_summary?: string;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* SQL eligibility expression. Omit to use the active-role default.
|
|
65
|
+
*/
|
|
66
|
+
eligibility_sql?: string;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Optional payout group label.
|
|
70
|
+
*/
|
|
71
|
+
group_name?: string;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* ID of the created payout.
|
|
75
|
+
*/
|
|
76
|
+
payout_id?: string;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Resulting payout status.
|
|
80
|
+
*/
|
|
81
|
+
status?: string;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export namespace VariableCompensationPayoutWriteCreateResponse {
|
|
85
|
+
/**
|
|
86
|
+
* Payout amount.
|
|
87
|
+
*/
|
|
88
|
+
export interface AmountBase {
|
|
89
|
+
/**
|
|
90
|
+
* Three-letter currency code.
|
|
91
|
+
*/
|
|
92
|
+
currency_type: string;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Decimal payout amount encoded as a string.
|
|
96
|
+
*/
|
|
97
|
+
value: string;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export interface VariableCompensationPayoutWriteCreateParams {
|
|
102
|
+
/**
|
|
103
|
+
* Payout amount.
|
|
104
|
+
*/
|
|
105
|
+
amount_base: VariableCompensationPayoutWriteCreateParams.AmountBase;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* RoleWithCompany ID for the payout recipient.
|
|
109
|
+
*/
|
|
110
|
+
payee_id: string;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Company payout type key.
|
|
114
|
+
*/
|
|
115
|
+
payment_type: string;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Date on which the payout is scheduled.
|
|
119
|
+
*/
|
|
120
|
+
scheduled_date: string;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Optional markdown summary of the eligibility conditions.
|
|
124
|
+
*/
|
|
125
|
+
ai_conditions_summary?: string;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* SQL eligibility expression. Omit to use the active-role default.
|
|
129
|
+
*/
|
|
130
|
+
eligibility_sql?: string;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Optional payout group label.
|
|
134
|
+
*/
|
|
135
|
+
group_name?: string;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export namespace VariableCompensationPayoutWriteCreateParams {
|
|
139
|
+
/**
|
|
140
|
+
* Payout amount.
|
|
141
|
+
*/
|
|
142
|
+
export interface AmountBase {
|
|
143
|
+
/**
|
|
144
|
+
* Three-letter currency code.
|
|
145
|
+
*/
|
|
146
|
+
currency_type: string;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Decimal payout amount encoded as a string.
|
|
150
|
+
*/
|
|
151
|
+
value: string;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export declare namespace VariableCompensationPayoutWrites {
|
|
156
|
+
export {
|
|
157
|
+
type VariableCompensationPayoutWriteCreateResponse as VariableCompensationPayoutWriteCreateResponse,
|
|
158
|
+
type VariableCompensationPayoutWriteCreateParams as VariableCompensationPayoutWriteCreateParams,
|
|
159
|
+
};
|
|
160
|
+
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.2.0-alpha.
|
|
1
|
+
export const VERSION = '0.2.0-alpha.93'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.2.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.2.0-alpha.93";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.2.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.2.0-alpha.93";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
|
-
exports.VERSION = '0.2.0-alpha.
|
|
4
|
+
exports.VERSION = '0.2.0-alpha.93'; // x-release-please-version
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.2.0-alpha.
|
|
1
|
+
export const VERSION = '0.2.0-alpha.93'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|