getricky 0.1.23 → 0.1.25

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.
@@ -2808,9 +2808,9 @@ export type Workflow = {
2808
2808
  type: 'conversation' | 'scheduled';
2809
2809
  definition: {
2810
2810
  /**
2811
- * `conversation_opened` runs when a conversation opens; `first_message_received` when the first message from the contact in a conversation arrives; `message_received` on every incoming message.
2811
+ * `conversation_opened` runs when a conversation opens; `first_message_received` when the first message from the contact in a conversation arrives; `message_received` on every incoming message. `team_away` runs nothing: during `coverage` the agent of its only `assign_agent` step answers every conversation of its channels and no assignee moves.
2812
2812
  */
2813
- trigger: 'conversation_opened' | 'first_message_received' | 'message_received';
2813
+ trigger: 'conversation_opened' | 'first_message_received' | 'message_received' | 'team_away';
2814
2814
  /**
2815
2815
  * Channels it listens to. See `GET /channels`.
2816
2816
  */
@@ -2828,6 +2828,23 @@ export type Workflow = {
2828
2828
  */
2829
2829
  skip_buttons: boolean;
2830
2830
  };
2831
+ /**
2832
+ * The period of a `team_away` workflow.
2833
+ */
2834
+ coverage?: {
2835
+ /**
2836
+ * When the team goes away.
2837
+ */
2838
+ starts_at: string;
2839
+ /**
2840
+ * When the team is back.
2841
+ */
2842
+ ends_at: string;
2843
+ /**
2844
+ * What the agent tells customers meanwhile.
2845
+ */
2846
+ notice: string | null;
2847
+ };
2831
2848
  /**
2832
2849
  * When it runs; null runs at any hour.
2833
2850
  */
@@ -2881,7 +2898,7 @@ export type Workflow = {
2881
2898
  */
2882
2899
  entry: string;
2883
2900
  /**
2884
- * One step. `assign_user`, `assign_agent` and `close_conversation` end the flow after they run.
2901
+ * One step. `close_conversation` and `end` finish the flow; every other step continues at its target.
2885
2902
  */
2886
2903
  steps: Array<{
2887
2904
  /**
@@ -4296,9 +4313,9 @@ export type CreateWorkflow = {
4296
4313
  */
4297
4314
  definition: {
4298
4315
  /**
4299
- * `conversation_opened` runs when a conversation opens; `first_message_received` when the first message from the contact in a conversation arrives; `message_received` on every incoming message.
4316
+ * `conversation_opened` runs when a conversation opens; `first_message_received` when the first message from the contact in a conversation arrives; `message_received` on every incoming message. `team_away` runs nothing: during `coverage` the agent of its only `assign_agent` step answers every conversation of its channels and no assignee moves.
4300
4317
  */
4301
- trigger: 'conversation_opened' | 'first_message_received' | 'message_received';
4318
+ trigger: 'conversation_opened' | 'first_message_received' | 'message_received' | 'team_away';
4302
4319
  /**
4303
4320
  * Channels it listens to. See `GET /channels`.
4304
4321
  */
@@ -4316,6 +4333,23 @@ export type CreateWorkflow = {
4316
4333
  */
4317
4334
  skip_buttons: boolean;
4318
4335
  };
4336
+ /**
4337
+ * The period of a `team_away` workflow.
4338
+ */
4339
+ coverage?: {
4340
+ /**
4341
+ * When the team goes away.
4342
+ */
4343
+ starts_at: string;
4344
+ /**
4345
+ * When the team is back.
4346
+ */
4347
+ ends_at: string;
4348
+ /**
4349
+ * What the agent tells customers meanwhile.
4350
+ */
4351
+ notice: string | null;
4352
+ };
4319
4353
  /**
4320
4354
  * When it runs; null runs at any hour.
4321
4355
  */
@@ -4369,7 +4403,7 @@ export type CreateWorkflow = {
4369
4403
  */
4370
4404
  entry: string;
4371
4405
  /**
4372
- * One step. `assign_user`, `assign_agent` and `close_conversation` end the flow after they run.
4406
+ * One step. `close_conversation` and `end` finish the flow; every other step continues at its target.
4373
4407
  */
4374
4408
  steps: Array<{
4375
4409
  /**
@@ -4534,9 +4568,9 @@ export type UpdateWorkflow = {
4534
4568
  */
4535
4569
  definition?: {
4536
4570
  /**
4537
- * `conversation_opened` runs when a conversation opens; `first_message_received` when the first message from the contact in a conversation arrives; `message_received` on every incoming message.
4571
+ * `conversation_opened` runs when a conversation opens; `first_message_received` when the first message from the contact in a conversation arrives; `message_received` on every incoming message. `team_away` runs nothing: during `coverage` the agent of its only `assign_agent` step answers every conversation of its channels and no assignee moves.
4538
4572
  */
4539
- trigger: 'conversation_opened' | 'first_message_received' | 'message_received';
4573
+ trigger: 'conversation_opened' | 'first_message_received' | 'message_received' | 'team_away';
4540
4574
  /**
4541
4575
  * Channels it listens to. See `GET /channels`.
4542
4576
  */
@@ -4554,6 +4588,23 @@ export type UpdateWorkflow = {
4554
4588
  */
4555
4589
  skip_buttons: boolean;
4556
4590
  };
4591
+ /**
4592
+ * The period of a `team_away` workflow.
4593
+ */
4594
+ coverage?: {
4595
+ /**
4596
+ * When the team goes away.
4597
+ */
4598
+ starts_at: string;
4599
+ /**
4600
+ * When the team is back.
4601
+ */
4602
+ ends_at: string;
4603
+ /**
4604
+ * What the agent tells customers meanwhile.
4605
+ */
4606
+ notice: string | null;
4607
+ };
4557
4608
  /**
4558
4609
  * When it runs; null runs at any hour.
4559
4610
  */
@@ -4607,7 +4658,7 @@ export type UpdateWorkflow = {
4607
4658
  */
4608
4659
  entry: string;
4609
4660
  /**
4610
- * One step. `assign_user`, `assign_agent` and `close_conversation` end the flow after they run.
4661
+ * One step. `close_conversation` and `end` finish the flow; every other step continues at its target.
4611
4662
  */
4612
4663
  steps: Array<{
4613
4664
  /**
@@ -2808,9 +2808,9 @@ export type Workflow = {
2808
2808
  type: 'conversation' | 'scheduled';
2809
2809
  definition: {
2810
2810
  /**
2811
- * `conversation_opened` runs when a conversation opens; `first_message_received` when the first message from the contact in a conversation arrives; `message_received` on every incoming message.
2811
+ * `conversation_opened` runs when a conversation opens; `first_message_received` when the first message from the contact in a conversation arrives; `message_received` on every incoming message. `team_away` runs nothing: during `coverage` the agent of its only `assign_agent` step answers every conversation of its channels and no assignee moves.
2812
2812
  */
2813
- trigger: 'conversation_opened' | 'first_message_received' | 'message_received';
2813
+ trigger: 'conversation_opened' | 'first_message_received' | 'message_received' | 'team_away';
2814
2814
  /**
2815
2815
  * Channels it listens to. See `GET /channels`.
2816
2816
  */
@@ -2828,6 +2828,23 @@ export type Workflow = {
2828
2828
  */
2829
2829
  skip_buttons: boolean;
2830
2830
  };
2831
+ /**
2832
+ * The period of a `team_away` workflow.
2833
+ */
2834
+ coverage?: {
2835
+ /**
2836
+ * When the team goes away.
2837
+ */
2838
+ starts_at: string;
2839
+ /**
2840
+ * When the team is back.
2841
+ */
2842
+ ends_at: string;
2843
+ /**
2844
+ * What the agent tells customers meanwhile.
2845
+ */
2846
+ notice: string | null;
2847
+ };
2831
2848
  /**
2832
2849
  * When it runs; null runs at any hour.
2833
2850
  */
@@ -2881,7 +2898,7 @@ export type Workflow = {
2881
2898
  */
2882
2899
  entry: string;
2883
2900
  /**
2884
- * One step. `assign_user`, `assign_agent` and `close_conversation` end the flow after they run.
2901
+ * One step. `close_conversation` and `end` finish the flow; every other step continues at its target.
2885
2902
  */
2886
2903
  steps: Array<{
2887
2904
  /**
@@ -4296,9 +4313,9 @@ export type CreateWorkflow = {
4296
4313
  */
4297
4314
  definition: {
4298
4315
  /**
4299
- * `conversation_opened` runs when a conversation opens; `first_message_received` when the first message from the contact in a conversation arrives; `message_received` on every incoming message.
4316
+ * `conversation_opened` runs when a conversation opens; `first_message_received` when the first message from the contact in a conversation arrives; `message_received` on every incoming message. `team_away` runs nothing: during `coverage` the agent of its only `assign_agent` step answers every conversation of its channels and no assignee moves.
4300
4317
  */
4301
- trigger: 'conversation_opened' | 'first_message_received' | 'message_received';
4318
+ trigger: 'conversation_opened' | 'first_message_received' | 'message_received' | 'team_away';
4302
4319
  /**
4303
4320
  * Channels it listens to. See `GET /channels`.
4304
4321
  */
@@ -4316,6 +4333,23 @@ export type CreateWorkflow = {
4316
4333
  */
4317
4334
  skip_buttons: boolean;
4318
4335
  };
4336
+ /**
4337
+ * The period of a `team_away` workflow.
4338
+ */
4339
+ coverage?: {
4340
+ /**
4341
+ * When the team goes away.
4342
+ */
4343
+ starts_at: string;
4344
+ /**
4345
+ * When the team is back.
4346
+ */
4347
+ ends_at: string;
4348
+ /**
4349
+ * What the agent tells customers meanwhile.
4350
+ */
4351
+ notice: string | null;
4352
+ };
4319
4353
  /**
4320
4354
  * When it runs; null runs at any hour.
4321
4355
  */
@@ -4369,7 +4403,7 @@ export type CreateWorkflow = {
4369
4403
  */
4370
4404
  entry: string;
4371
4405
  /**
4372
- * One step. `assign_user`, `assign_agent` and `close_conversation` end the flow after they run.
4406
+ * One step. `close_conversation` and `end` finish the flow; every other step continues at its target.
4373
4407
  */
4374
4408
  steps: Array<{
4375
4409
  /**
@@ -4534,9 +4568,9 @@ export type UpdateWorkflow = {
4534
4568
  */
4535
4569
  definition?: {
4536
4570
  /**
4537
- * `conversation_opened` runs when a conversation opens; `first_message_received` when the first message from the contact in a conversation arrives; `message_received` on every incoming message.
4571
+ * `conversation_opened` runs when a conversation opens; `first_message_received` when the first message from the contact in a conversation arrives; `message_received` on every incoming message. `team_away` runs nothing: during `coverage` the agent of its only `assign_agent` step answers every conversation of its channels and no assignee moves.
4538
4572
  */
4539
- trigger: 'conversation_opened' | 'first_message_received' | 'message_received';
4573
+ trigger: 'conversation_opened' | 'first_message_received' | 'message_received' | 'team_away';
4540
4574
  /**
4541
4575
  * Channels it listens to. See `GET /channels`.
4542
4576
  */
@@ -4554,6 +4588,23 @@ export type UpdateWorkflow = {
4554
4588
  */
4555
4589
  skip_buttons: boolean;
4556
4590
  };
4591
+ /**
4592
+ * The period of a `team_away` workflow.
4593
+ */
4594
+ coverage?: {
4595
+ /**
4596
+ * When the team goes away.
4597
+ */
4598
+ starts_at: string;
4599
+ /**
4600
+ * When the team is back.
4601
+ */
4602
+ ends_at: string;
4603
+ /**
4604
+ * What the agent tells customers meanwhile.
4605
+ */
4606
+ notice: string | null;
4607
+ };
4557
4608
  /**
4558
4609
  * When it runs; null runs at any hour.
4559
4610
  */
@@ -4607,7 +4658,7 @@ export type UpdateWorkflow = {
4607
4658
  */
4608
4659
  entry: string;
4609
4660
  /**
4610
- * One step. `assign_user`, `assign_agent` and `close_conversation` end the flow after they run.
4661
+ * One step. `close_conversation` and `end` finish the flow; every other step continues at its target.
4611
4662
  */
4612
4663
  steps: Array<{
4613
4664
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "getricky",
3
- "version": "0.1.23",
3
+ "version": "0.1.25",
4
4
  "description": "Official TypeScript SDK for the Ricky REST API",
5
5
  "keywords": [
6
6
  "api",