@knocklabs/node 0.4.24 → 0.4.26

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/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knocklabs/node",
3
- "version": "0.4.24",
3
+ "version": "0.4.26",
4
4
  "description": "Library for interacting with the Knock API",
5
5
  "homepage": "https://github.com/knocklabs/knock-node",
6
6
  "author": "@knocklabs",
@@ -35,7 +35,7 @@
35
35
  "@types/jsonwebtoken": "^9.0.1",
36
36
  "@types/node": "^15.0.1",
37
37
  "@types/pluralize": "0.0.29",
38
- "axios-mock-adapter": "1.19.0",
38
+ "axios-mock-adapter": "^1.22.0",
39
39
  "jest": "26.6.3",
40
40
  "prettier": "2.2.1",
41
41
  "supertest": "6.1.3",
@@ -44,7 +44,7 @@
44
44
  "typescript": "4.2.4"
45
45
  },
46
46
  "dependencies": {
47
- "axios": "^0.21.1",
47
+ "axios": "1.6",
48
48
  "jsonwebtoken": "^9.0.0"
49
49
  }
50
50
  }
@@ -19,7 +19,9 @@ class Workflows {
19
19
  if (!workflowKey && !recipients) {
20
20
  throw new Error(`Incomplete arguments. At a minimum you need to specify 'workflowKey' and 'recipients'.`);
21
21
  }
22
- const options = idempotencyKey ? { headers: { 'Idempotency-Key': idempotencyKey } } : {};
22
+ const options = idempotencyKey
23
+ ? { headers: { "Idempotency-Key": idempotencyKey } }
24
+ : {};
23
25
  const { data } = yield this.knock.post(`/v1/workflows/${workflowKey}/trigger`, {
24
26
  actor,
25
27
  recipients,
@@ -43,7 +43,7 @@ export interface CreateSchedulesProps {
43
43
  recipients: (Recipient | RecipientWithUpsert)[];
44
44
  actor?: Recipient | RecipientWithUpsert | null;
45
45
  scheduled_at?: string;
46
- repeats: ScheduleRepeatProperties[];
46
+ repeats?: ScheduleRepeatProperties[];
47
47
  tenant?: string;
48
48
  data?: {
49
49
  [key: string]: any;
@@ -69,7 +69,7 @@ export interface Schedule {
69
69
  [key: string]: any;
70
70
  };
71
71
  last_occurrence_at: string | null;
72
- next_occurrence_at: string;
72
+ next_occurrence_at: string | null;
73
73
  inserted_at: string;
74
74
  updated_at: string;
75
75
  repeats: ScheduleRepeatProperties[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knocklabs/node",
3
- "version": "0.4.24",
3
+ "version": "0.4.26",
4
4
  "description": "Library for interacting with the Knock API",
5
5
  "homepage": "https://github.com/knocklabs/knock-node",
6
6
  "author": "@knocklabs",
@@ -35,7 +35,7 @@
35
35
  "@types/jsonwebtoken": "^9.0.1",
36
36
  "@types/node": "^15.0.1",
37
37
  "@types/pluralize": "0.0.29",
38
- "axios-mock-adapter": "1.19.0",
38
+ "axios-mock-adapter": "^1.22.0",
39
39
  "jest": "26.6.3",
40
40
  "prettier": "2.2.1",
41
41
  "supertest": "6.1.3",
@@ -44,7 +44,7 @@
44
44
  "typescript": "4.2.4"
45
45
  },
46
46
  "dependencies": {
47
- "axios": "^0.21.1",
47
+ "axios": "1.6",
48
48
  "jsonwebtoken": "^9.0.0"
49
49
  }
50
- }
50
+ }