@rippling/rippling-sdk 0.2.0-alpha.28 → 0.2.0-alpha.29

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.
Files changed (152) hide show
  1. package/client.d.mts +72 -0
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts +72 -0
  4. package/client.d.ts.map +1 -1
  5. package/client.js +72 -0
  6. package/client.js.map +1 -1
  7. package/client.mjs +72 -0
  8. package/client.mjs.map +1 -1
  9. package/package.json +1 -1
  10. package/resources/assign-review.d.mts +31 -0
  11. package/resources/assign-review.d.mts.map +1 -0
  12. package/resources/assign-review.d.ts +31 -0
  13. package/resources/assign-review.d.ts.map +1 -0
  14. package/resources/assign-review.js +18 -0
  15. package/resources/assign-review.js.map +1 -0
  16. package/resources/assign-review.mjs +14 -0
  17. package/resources/assign-review.mjs.map +1 -0
  18. package/resources/create-app-notification.d.mts +1 -1
  19. package/resources/create-app-notification.d.ts +1 -1
  20. package/resources/create-app-notification.js +1 -1
  21. package/resources/create-app-notification.mjs +1 -1
  22. package/resources/create-gcal-event.d.mts +55 -0
  23. package/resources/create-gcal-event.d.mts.map +1 -0
  24. package/resources/create-gcal-event.d.ts +55 -0
  25. package/resources/create-gcal-event.d.ts.map +1 -0
  26. package/resources/create-gcal-event.js +18 -0
  27. package/resources/create-gcal-event.js.map +1 -0
  28. package/resources/create-gcal-event.mjs +14 -0
  29. package/resources/create-gcal-event.mjs.map +1 -0
  30. package/resources/delete-custom-object-record.d.mts +26 -0
  31. package/resources/delete-custom-object-record.d.mts.map +1 -0
  32. package/resources/delete-custom-object-record.d.ts +26 -0
  33. package/resources/delete-custom-object-record.d.ts.map +1 -0
  34. package/resources/delete-custom-object-record.js +18 -0
  35. package/resources/delete-custom-object-record.js.map +1 -0
  36. package/resources/delete-custom-object-record.mjs +14 -0
  37. package/resources/delete-custom-object-record.mjs.map +1 -0
  38. package/resources/draft-hires.d.mts +8 -0
  39. package/resources/draft-hires.d.mts.map +1 -1
  40. package/resources/draft-hires.d.ts +8 -0
  41. package/resources/draft-hires.d.ts.map +1 -1
  42. package/resources/evaluate-rql.d.mts +31 -0
  43. package/resources/evaluate-rql.d.mts.map +1 -0
  44. package/resources/evaluate-rql.d.ts +31 -0
  45. package/resources/evaluate-rql.d.ts.map +1 -0
  46. package/resources/evaluate-rql.js +18 -0
  47. package/resources/evaluate-rql.js.map +1 -0
  48. package/resources/evaluate-rql.mjs +14 -0
  49. package/resources/evaluate-rql.mjs.map +1 -0
  50. package/resources/index.d.mts +12 -0
  51. package/resources/index.d.mts.map +1 -1
  52. package/resources/index.d.ts +12 -0
  53. package/resources/index.d.ts.map +1 -1
  54. package/resources/index.js +26 -2
  55. package/resources/index.js.map +1 -1
  56. package/resources/index.mjs +12 -0
  57. package/resources/index.mjs.map +1 -1
  58. package/resources/send-email.d.mts +1 -1
  59. package/resources/send-email.d.ts +1 -1
  60. package/resources/send-email.js +1 -1
  61. package/resources/send-email.mjs +1 -1
  62. package/resources/send-http-request.d.mts +32 -0
  63. package/resources/send-http-request.d.mts.map +1 -0
  64. package/resources/send-http-request.d.ts +32 -0
  65. package/resources/send-http-request.d.ts.map +1 -0
  66. package/resources/send-http-request.js +18 -0
  67. package/resources/send-http-request.js.map +1 -0
  68. package/resources/send-http-request.mjs +14 -0
  69. package/resources/send-http-request.mjs.map +1 -0
  70. package/resources/send-push-notification.d.mts +27 -0
  71. package/resources/send-push-notification.d.mts.map +1 -0
  72. package/resources/send-push-notification.d.ts +27 -0
  73. package/resources/send-push-notification.d.ts.map +1 -0
  74. package/resources/send-push-notification.js +18 -0
  75. package/resources/send-push-notification.js.map +1 -0
  76. package/resources/send-push-notification.mjs +14 -0
  77. package/resources/send-push-notification.mjs.map +1 -0
  78. package/resources/send-report-sftp.d.mts +42 -0
  79. package/resources/send-report-sftp.d.mts.map +1 -0
  80. package/resources/send-report-sftp.d.ts +42 -0
  81. package/resources/send-report-sftp.d.ts.map +1 -0
  82. package/resources/send-report-sftp.js +18 -0
  83. package/resources/send-report-sftp.js.map +1 -0
  84. package/resources/send-report-sftp.mjs +14 -0
  85. package/resources/send-report-sftp.mjs.map +1 -0
  86. package/resources/send-slack.d.mts +1 -1
  87. package/resources/send-slack.d.ts +1 -1
  88. package/resources/send-slack.js +1 -1
  89. package/resources/send-slack.mjs +1 -1
  90. package/resources/send-sms.d.mts +26 -0
  91. package/resources/send-sms.d.mts.map +1 -0
  92. package/resources/send-sms.d.ts +26 -0
  93. package/resources/send-sms.d.ts.map +1 -0
  94. package/resources/send-sms.js +18 -0
  95. package/resources/send-sms.js.map +1 -0
  96. package/resources/send-sms.mjs +14 -0
  97. package/resources/send-sms.mjs.map +1 -0
  98. package/resources/send-survey.d.mts +29 -0
  99. package/resources/send-survey.d.mts.map +1 -0
  100. package/resources/send-survey.d.ts +29 -0
  101. package/resources/send-survey.d.ts.map +1 -0
  102. package/resources/send-survey.js +18 -0
  103. package/resources/send-survey.js.map +1 -0
  104. package/resources/send-survey.mjs +14 -0
  105. package/resources/send-survey.mjs.map +1 -0
  106. package/resources/send-teams.d.mts +30 -0
  107. package/resources/send-teams.d.mts.map +1 -0
  108. package/resources/send-teams.d.ts +30 -0
  109. package/resources/send-teams.d.ts.map +1 -0
  110. package/resources/send-teams.js +18 -0
  111. package/resources/send-teams.js.map +1 -0
  112. package/resources/send-teams.mjs +14 -0
  113. package/resources/send-teams.mjs.map +1 -0
  114. package/resources/update-custom-object-record.d.mts +27 -0
  115. package/resources/update-custom-object-record.d.mts.map +1 -0
  116. package/resources/update-custom-object-record.d.ts +27 -0
  117. package/resources/update-custom-object-record.d.ts.map +1 -0
  118. package/resources/update-custom-object-record.js +18 -0
  119. package/resources/update-custom-object-record.js.map +1 -0
  120. package/resources/update-custom-object-record.mjs +14 -0
  121. package/resources/update-custom-object-record.mjs.map +1 -0
  122. package/resources/upsert-custom-object.d.mts +26 -0
  123. package/resources/upsert-custom-object.d.mts.map +1 -0
  124. package/resources/upsert-custom-object.d.ts +26 -0
  125. package/resources/upsert-custom-object.d.ts.map +1 -0
  126. package/resources/upsert-custom-object.js +18 -0
  127. package/resources/upsert-custom-object.js.map +1 -0
  128. package/resources/upsert-custom-object.mjs +14 -0
  129. package/resources/upsert-custom-object.mjs.map +1 -0
  130. package/src/client.ts +176 -0
  131. package/src/resources/assign-review.ts +44 -0
  132. package/src/resources/create-app-notification.ts +1 -1
  133. package/src/resources/create-gcal-event.ts +86 -0
  134. package/src/resources/delete-custom-object-record.ts +40 -0
  135. package/src/resources/draft-hires.ts +10 -0
  136. package/src/resources/evaluate-rql.ts +44 -0
  137. package/src/resources/index.ts +44 -0
  138. package/src/resources/send-email.ts +1 -1
  139. package/src/resources/send-http-request.ts +49 -0
  140. package/src/resources/send-push-notification.ts +42 -0
  141. package/src/resources/send-report-sftp.ts +66 -0
  142. package/src/resources/send-slack.ts +1 -1
  143. package/src/resources/send-sms.ts +37 -0
  144. package/src/resources/send-survey.ts +43 -0
  145. package/src/resources/send-teams.ts +42 -0
  146. package/src/resources/update-custom-object-record.ts +42 -0
  147. package/src/resources/upsert-custom-object.ts +40 -0
  148. package/src/version.ts +1 -1
  149. package/version.d.mts +1 -1
  150. package/version.d.ts +1 -1
  151. package/version.js +1 -1
  152. package/version.mjs +1 -1
@@ -0,0 +1,86 @@
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
+ * Execute workflow actions like sending emails, Slack messages, and notifications
9
+ */
10
+ export class CreateGcalEvent extends APIResource {
11
+ /**
12
+ * Execute the gcal event action.
13
+ */
14
+ create(
15
+ body: CreateGcalEventCreateParams,
16
+ options?: RequestOptions,
17
+ ): APIPromise<CreateGcalEventCreateResponse> {
18
+ return this._client.post('/create-gcal-event/', { body, ...options });
19
+ }
20
+ }
21
+
22
+ export interface CreateGcalEventCreateResponse {
23
+ /**
24
+ * Result of the create Google Calendar event action
25
+ */
26
+ result: unknown;
27
+ }
28
+
29
+ export interface CreateGcalEventCreateParams {
30
+ attendees: Array<string>;
31
+
32
+ description: string;
33
+
34
+ end_date: string;
35
+
36
+ end_time: string;
37
+
38
+ organizer: Array<string>;
39
+
40
+ /**
41
+ * An enumeration.
42
+ */
43
+ organizer_type: 'SUPERGROUP' | 'WORKFLOW_OWNER';
44
+
45
+ start_date: string;
46
+
47
+ start_time: string;
48
+
49
+ timezone: string;
50
+
51
+ title: string;
52
+
53
+ all_day_event?: boolean | null;
54
+
55
+ guestsCanInviteOthers?: boolean | null;
56
+
57
+ guestsCanModify?: boolean | null;
58
+
59
+ guestsCanSeeOtherGuests?: boolean | null;
60
+
61
+ recurrence_count?: number | null;
62
+
63
+ /**
64
+ * An enumeration.
65
+ */
66
+ recurrence_frequency?: 'DAILY' | 'WEEKLY' | 'MONTHLY' | 'YEARLY' | null;
67
+
68
+ recurrence_has_end?: boolean | null;
69
+
70
+ /**
71
+ * An enumeration.
72
+ */
73
+ transparency?: 'opaque' | 'transparent' | null;
74
+
75
+ /**
76
+ * An enumeration.
77
+ */
78
+ visibility?: 'default' | 'public' | 'private' | null;
79
+ }
80
+
81
+ export declare namespace CreateGcalEvent {
82
+ export {
83
+ type CreateGcalEventCreateResponse as CreateGcalEventCreateResponse,
84
+ type CreateGcalEventCreateParams as CreateGcalEventCreateParams,
85
+ };
86
+ }
@@ -0,0 +1,40 @@
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
+ * Execute workflow actions like sending emails, Slack messages, and notifications
9
+ */
10
+ export class DeleteCustomObjectRecord extends APIResource {
11
+ /**
12
+ * Execute the custom object record deletion action.
13
+ */
14
+ create(
15
+ body: DeleteCustomObjectRecordCreateParams,
16
+ options?: RequestOptions,
17
+ ): APIPromise<DeleteCustomObjectRecordCreateResponse> {
18
+ return this._client.post('/delete-custom-object-record/', { body, ...options });
19
+ }
20
+ }
21
+
22
+ export interface DeleteCustomObjectRecordCreateResponse {
23
+ /**
24
+ * Result of the delete custom object record action
25
+ */
26
+ result: unknown;
27
+ }
28
+
29
+ export interface DeleteCustomObjectRecordCreateParams {
30
+ customObjectAPIName: string;
31
+
32
+ recordID: string;
33
+ }
34
+
35
+ export declare namespace DeleteCustomObjectRecord {
36
+ export {
37
+ type DeleteCustomObjectRecordCreateResponse as DeleteCustomObjectRecordCreateResponse,
38
+ type DeleteCustomObjectRecordCreateParams as DeleteCustomObjectRecordCreateParams,
39
+ };
40
+ }
@@ -247,6 +247,11 @@ export namespace DraftHireCreateParams {
247
247
  */
248
248
  target_annual_bonus?: number;
249
249
 
250
+ /**
251
+ * Target annual bonus as a percentage
252
+ */
253
+ target_annual_bonus_percent?: number;
254
+
250
255
  /**
251
256
  * Teams IDs
252
257
  */
@@ -510,6 +515,11 @@ export namespace DraftHireCreateParams {
510
515
  * Work location ID
511
516
  */
512
517
  location_id?: string;
518
+
519
+ /**
520
+ * State code of the work location
521
+ */
522
+ state_code?: string;
513
523
  }
514
524
 
515
525
  /**
@@ -0,0 +1,44 @@
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
+ * Execute workflow actions like sending emails, Slack messages, and notifications
9
+ */
10
+ export class EvaluateRql extends APIResource {
11
+ /**
12
+ * Execute the rql evaluation action.
13
+ */
14
+ create(body: EvaluateRqlCreateParams, options?: RequestOptions): APIPromise<EvaluateRqlCreateResponse> {
15
+ return this._client.post('/evaluate-rql/', { body, ...options });
16
+ }
17
+ }
18
+
19
+ export interface EvaluateRqlCreateResponse {
20
+ /**
21
+ * Result of the evaluate RQL action
22
+ */
23
+ result: unknown;
24
+ }
25
+
26
+ export interface EvaluateRqlCreateParams {
27
+ /**
28
+ * An enumeration.
29
+ */
30
+ queryType: 'SELECTION' | 'QUERY';
31
+
32
+ rqlCondition?: string | null;
33
+
34
+ rqlFormula?: string | null;
35
+
36
+ rqlModelName?: string | null;
37
+ }
38
+
39
+ export declare namespace EvaluateRql {
40
+ export {
41
+ type EvaluateRqlCreateResponse as EvaluateRqlCreateResponse,
42
+ type EvaluateRqlCreateParams as EvaluateRqlCreateParams,
43
+ };
44
+ }
@@ -1,6 +1,11 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  export * from './shared';
4
+ export {
5
+ AssignReview,
6
+ type AssignReviewCreateResponse,
7
+ type AssignReviewCreateParams,
8
+ } from './assign-review';
4
9
  export {
5
10
  BusinessPartnerGroups,
6
11
  type BusinessPartnerGroup,
@@ -54,6 +59,11 @@ export {
54
59
  type CreateAppNotificationCreateResponse,
55
60
  type CreateAppNotificationCreateParams,
56
61
  } from './create-app-notification';
62
+ export {
63
+ CreateGcalEvent,
64
+ type CreateGcalEventCreateResponse,
65
+ type CreateGcalEventCreateParams,
66
+ } from './create-gcal-event';
57
67
  export {
58
68
  CustomApps,
59
69
  type CustomAppListResponse,
@@ -98,6 +108,11 @@ export {
98
108
  type CustomSettingUpdateParams,
99
109
  type CustomSettingListResponsesPageCursorURL,
100
110
  } from './custom-settings';
111
+ export {
112
+ DeleteCustomObjectRecord,
113
+ type DeleteCustomObjectRecordCreateResponse,
114
+ type DeleteCustomObjectRecordCreateParams,
115
+ } from './delete-custom-object-record';
101
116
  export {
102
117
  Departments,
103
118
  type Department,
@@ -121,6 +136,7 @@ export {
121
136
  type EntitlementListResponse,
122
137
  type EntitlementListResponsesPageCursorURL,
123
138
  } from './entitlements';
139
+ export { EvaluateRql, type EvaluateRqlCreateResponse, type EvaluateRqlCreateParams } from './evaluate-rql';
124
140
  export {
125
141
  Functions,
126
142
  type Function,
@@ -319,7 +335,25 @@ export {
319
335
  type ScheduleListResponsesPageCursorURL,
320
336
  } from './schedules';
321
337
  export { SendEmail, type SendEmailCreateResponse, type SendEmailCreateParams } from './send-email';
338
+ export {
339
+ SendHTTPRequest,
340
+ type SendHTTPRequestCreateResponse,
341
+ type SendHTTPRequestCreateParams,
342
+ } from './send-http-request';
343
+ export {
344
+ SendPushNotification,
345
+ type SendPushNotificationCreateResponse,
346
+ type SendPushNotificationCreateParams,
347
+ } from './send-push-notification';
348
+ export {
349
+ SendReportSftp,
350
+ type SendReportSftpCreateResponse,
351
+ type SendReportSftpCreateParams,
352
+ } from './send-report-sftp';
353
+ export { SendSMS, type SendSMSCreateResponse, type SendSMSCreateParams } from './send-sms';
322
354
  export { SendSlack, type SendSlackCreateResponse, type SendSlackCreateParams } from './send-slack';
355
+ export { SendSurvey, type SendSurveyCreateResponse, type SendSurveyCreateParams } from './send-survey';
356
+ export { SendTeams, type SendTeamCreateResponse, type SendTeamCreateParams } from './send-teams';
323
357
  export {
324
358
  ShiftAssignments,
325
359
  type ShiftAssignmentUpdateCustomfieldsResponse,
@@ -424,6 +458,16 @@ export {
424
458
  type UnassignedshiftUpdateParams,
425
459
  type UnassignedshiftListResponsesPageCursorURL,
426
460
  } from './unassignedshifts';
461
+ export {
462
+ UpdateCustomObjectRecord,
463
+ type UpdateCustomObjectRecordCreateResponse,
464
+ type UpdateCustomObjectRecordCreateParams,
465
+ } from './update-custom-object-record';
466
+ export {
467
+ UpsertCustomObject,
468
+ type UpsertCustomObjectCreateResponse,
469
+ type UpsertCustomObjectCreateParams,
470
+ } from './upsert-custom-object';
427
471
  export {
428
472
  Users,
429
473
  type User,
@@ -9,7 +9,7 @@ import { RequestOptions } from '../internal/request-options';
9
9
  */
10
10
  export class SendEmail extends APIResource {
11
11
  /**
12
- * Send an email to the specified recipients with the given subject and body.
12
+ * Execute the email action.
13
13
  */
14
14
  create(body: SendEmailCreateParams, options?: RequestOptions): APIPromise<SendEmailCreateResponse> {
15
15
  return this._client.post('/send-email/', { body, ...options });
@@ -0,0 +1,49 @@
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
+ * Execute workflow actions like sending emails, Slack messages, and notifications
9
+ */
10
+ export class SendHTTPRequest extends APIResource {
11
+ /**
12
+ * Execute the http request action.
13
+ */
14
+ create(
15
+ body: SendHTTPRequestCreateParams,
16
+ options?: RequestOptions,
17
+ ): APIPromise<SendHTTPRequestCreateResponse> {
18
+ return this._client.post('/send-http-request/', { body, ...options });
19
+ }
20
+ }
21
+
22
+ export interface SendHTTPRequestCreateResponse {
23
+ /**
24
+ * Result of the send HTTP request action
25
+ */
26
+ result: unknown;
27
+ }
28
+
29
+ export interface SendHTTPRequestCreateParams {
30
+ url: string;
31
+
32
+ customHTTPHeaders?: unknown | null;
33
+
34
+ /**
35
+ * An enumeration.
36
+ */
37
+ method?: 'POST' | 'GET' | 'PUT' | 'PATCH' | 'DELETE' | null;
38
+
39
+ payload?: unknown | null;
40
+
41
+ queryParams?: unknown | null;
42
+ }
43
+
44
+ export declare namespace SendHTTPRequest {
45
+ export {
46
+ type SendHTTPRequestCreateResponse as SendHTTPRequestCreateResponse,
47
+ type SendHTTPRequestCreateParams as SendHTTPRequestCreateParams,
48
+ };
49
+ }
@@ -0,0 +1,42 @@
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
+ * Execute workflow actions like sending emails, Slack messages, and notifications
9
+ */
10
+ export class SendPushNotification extends APIResource {
11
+ /**
12
+ * Execute the push notification action.
13
+ */
14
+ create(
15
+ body: SendPushNotificationCreateParams,
16
+ options?: RequestOptions,
17
+ ): APIPromise<SendPushNotificationCreateResponse> {
18
+ return this._client.post('/send-push-notification/', { body, ...options });
19
+ }
20
+ }
21
+
22
+ export interface SendPushNotificationCreateResponse {
23
+ /**
24
+ * Result of the send push notification action
25
+ */
26
+ result: unknown;
27
+ }
28
+
29
+ export interface SendPushNotificationCreateParams {
30
+ header: string;
31
+
32
+ message: string;
33
+
34
+ recipients: Array<string>;
35
+ }
36
+
37
+ export declare namespace SendPushNotification {
38
+ export {
39
+ type SendPushNotificationCreateResponse as SendPushNotificationCreateResponse,
40
+ type SendPushNotificationCreateParams as SendPushNotificationCreateParams,
41
+ };
42
+ }
@@ -0,0 +1,66 @@
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
+ * Execute workflow actions like sending emails, Slack messages, and notifications
9
+ */
10
+ export class SendReportSftp extends APIResource {
11
+ /**
12
+ * Execute the sftp report action.
13
+ */
14
+ create(
15
+ body: SendReportSftpCreateParams,
16
+ options?: RequestOptions,
17
+ ): APIPromise<SendReportSftpCreateResponse> {
18
+ return this._client.post('/send-report-sftp/', { body, ...options });
19
+ }
20
+ }
21
+
22
+ export interface SendReportSftpCreateResponse {
23
+ /**
24
+ * Result of the send report via SFTP action
25
+ */
26
+ result: unknown;
27
+ }
28
+
29
+ export interface SendReportSftpCreateParams {
30
+ /**
31
+ * An enumeration.
32
+ */
33
+ authenticationType: 'PASSWORD' | 'SSH_KEY';
34
+
35
+ fileType: string;
36
+
37
+ hostName: string;
38
+
39
+ port: number;
40
+
41
+ reportId: string;
42
+
43
+ userName: string;
44
+
45
+ fileName?: string | null;
46
+
47
+ filePath?: string | null;
48
+
49
+ /**
50
+ * An enumeration.
51
+ */
52
+ fileSuffix?: 'EPOCH_FORMAT' | 'NO_SUFFIX' | 'DEFAULT_FORMAT' | null;
53
+
54
+ password?: string | null;
55
+
56
+ privateKey?: string | null;
57
+
58
+ privateKeyPassphrase?: string | null;
59
+ }
60
+
61
+ export declare namespace SendReportSftp {
62
+ export {
63
+ type SendReportSftpCreateResponse as SendReportSftpCreateResponse,
64
+ type SendReportSftpCreateParams as SendReportSftpCreateParams,
65
+ };
66
+ }
@@ -9,7 +9,7 @@ import { RequestOptions } from '../internal/request-options';
9
9
  */
10
10
  export class SendSlack extends APIResource {
11
11
  /**
12
- * Send a Slack message to the specified recipients.
12
+ * Execute the slack message action.
13
13
  */
14
14
  create(body: SendSlackCreateParams, options?: RequestOptions): APIPromise<SendSlackCreateResponse> {
15
15
  return this._client.post('/send-slack/', { body, ...options });
@@ -0,0 +1,37 @@
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
+ * Execute workflow actions like sending emails, Slack messages, and notifications
9
+ */
10
+ export class SendSMS extends APIResource {
11
+ /**
12
+ * Execute the sms action.
13
+ */
14
+ create(body: SendSMSCreateParams, options?: RequestOptions): APIPromise<SendSMSCreateResponse> {
15
+ return this._client.post('/send-sms/', { body, ...options });
16
+ }
17
+ }
18
+
19
+ export interface SendSMSCreateResponse {
20
+ /**
21
+ * Result of the send SMS action
22
+ */
23
+ result: unknown;
24
+ }
25
+
26
+ export interface SendSMSCreateParams {
27
+ message: string;
28
+
29
+ recipients: Array<string>;
30
+ }
31
+
32
+ export declare namespace SendSMS {
33
+ export {
34
+ type SendSMSCreateResponse as SendSMSCreateResponse,
35
+ type SendSMSCreateParams as SendSMSCreateParams,
36
+ };
37
+ }
@@ -0,0 +1,43 @@
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
+ * Execute workflow actions like sending emails, Slack messages, and notifications
9
+ */
10
+ export class SendSurvey extends APIResource {
11
+ /**
12
+ * Execute the survey action.
13
+ */
14
+ create(body: SendSurveyCreateParams, options?: RequestOptions): APIPromise<SendSurveyCreateResponse> {
15
+ return this._client.post('/send-survey/', { body, ...options });
16
+ }
17
+ }
18
+
19
+ export interface SendSurveyCreateResponse {
20
+ /**
21
+ * Result of the send survey action
22
+ */
23
+ result: unknown;
24
+ }
25
+
26
+ export interface SendSurveyCreateParams {
27
+ body: string;
28
+
29
+ recipients: Array<string>;
30
+
31
+ subject: string;
32
+
33
+ surveyID: string;
34
+
35
+ expiryDays?: number | null;
36
+ }
37
+
38
+ export declare namespace SendSurvey {
39
+ export {
40
+ type SendSurveyCreateResponse as SendSurveyCreateResponse,
41
+ type SendSurveyCreateParams as SendSurveyCreateParams,
42
+ };
43
+ }
@@ -0,0 +1,42 @@
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
+ * Execute workflow actions like sending emails, Slack messages, and notifications
9
+ */
10
+ export class SendTeams extends APIResource {
11
+ /**
12
+ * Execute the teams message action.
13
+ */
14
+ create(body: SendTeamCreateParams, options?: RequestOptions): APIPromise<SendTeamCreateResponse> {
15
+ return this._client.post('/send-teams/', { body, ...options });
16
+ }
17
+ }
18
+
19
+ export interface SendTeamCreateResponse {
20
+ /**
21
+ * Result of the send Teams message action
22
+ */
23
+ result: unknown;
24
+ }
25
+
26
+ export interface SendTeamCreateParams {
27
+ /**
28
+ * An enumeration.
29
+ */
30
+ action_type: 'PUBLIC_CHANNEL_MESSAGE' | 'SINGLE_DIRECT_MESSAGE';
31
+
32
+ message: string;
33
+
34
+ recipients?: Array<string> | null;
35
+ }
36
+
37
+ export declare namespace SendTeams {
38
+ export {
39
+ type SendTeamCreateResponse as SendTeamCreateResponse,
40
+ type SendTeamCreateParams as SendTeamCreateParams,
41
+ };
42
+ }
@@ -0,0 +1,42 @@
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
+ * Execute workflow actions like sending emails, Slack messages, and notifications
9
+ */
10
+ export class UpdateCustomObjectRecord extends APIResource {
11
+ /**
12
+ * Execute the custom object record update action.
13
+ */
14
+ create(
15
+ body: UpdateCustomObjectRecordCreateParams,
16
+ options?: RequestOptions,
17
+ ): APIPromise<UpdateCustomObjectRecordCreateResponse> {
18
+ return this._client.post('/update-custom-object-record/', { body, ...options });
19
+ }
20
+ }
21
+
22
+ export interface UpdateCustomObjectRecordCreateResponse {
23
+ /**
24
+ * Result of the update custom object record action
25
+ */
26
+ result: unknown;
27
+ }
28
+
29
+ export interface UpdateCustomObjectRecordCreateParams {
30
+ customObjectAPIName: string;
31
+
32
+ record: unknown;
33
+
34
+ recordID: string;
35
+ }
36
+
37
+ export declare namespace UpdateCustomObjectRecord {
38
+ export {
39
+ type UpdateCustomObjectRecordCreateResponse as UpdateCustomObjectRecordCreateResponse,
40
+ type UpdateCustomObjectRecordCreateParams as UpdateCustomObjectRecordCreateParams,
41
+ };
42
+ }
@@ -0,0 +1,40 @@
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
+ * Execute workflow actions like sending emails, Slack messages, and notifications
9
+ */
10
+ export class UpsertCustomObject extends APIResource {
11
+ /**
12
+ * Execute the custom object upsert action.
13
+ */
14
+ create(
15
+ body: UpsertCustomObjectCreateParams,
16
+ options?: RequestOptions,
17
+ ): APIPromise<UpsertCustomObjectCreateResponse> {
18
+ return this._client.post('/upsert-custom-object/', { body, ...options });
19
+ }
20
+ }
21
+
22
+ export interface UpsertCustomObjectCreateResponse {
23
+ /**
24
+ * Result of the upsert custom object action
25
+ */
26
+ result: unknown;
27
+ }
28
+
29
+ export interface UpsertCustomObjectCreateParams {
30
+ customObjectAPIName: string;
31
+
32
+ record: unknown;
33
+ }
34
+
35
+ export declare namespace UpsertCustomObject {
36
+ export {
37
+ type UpsertCustomObjectCreateResponse as UpsertCustomObjectCreateResponse,
38
+ type UpsertCustomObjectCreateParams as UpsertCustomObjectCreateParams,
39
+ };
40
+ }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.2.0-alpha.28'; // x-release-please-version
1
+ export const VERSION = '0.2.0-alpha.29'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.2.0-alpha.28";
1
+ export declare const VERSION = "0.2.0-alpha.29";
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.28";
1
+ export declare const VERSION = "0.2.0-alpha.29";
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.28'; // x-release-please-version
4
+ exports.VERSION = '0.2.0-alpha.29'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map