@moovio/sdk 0.12.0 → 0.12.1

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 (118) hide show
  1. package/FUNCTIONS.md +6 -22
  2. package/README.md +97 -55
  3. package/bin/mcp-server.js +749 -415
  4. package/bin/mcp-server.js.map +19 -9
  5. package/docs/sdks/accounts/README.md +63 -81
  6. package/docs/sdks/accountterminalapplications/README.md +28 -36
  7. package/docs/sdks/adjustments/README.md +14 -18
  8. package/docs/sdks/applepay/README.md +35 -45
  9. package/docs/sdks/authentication/README.md +14 -18
  10. package/docs/sdks/avatars/README.md +7 -9
  11. package/docs/sdks/bankaccounts/README.md +63 -81
  12. package/docs/sdks/branding/README.md +28 -36
  13. package/docs/sdks/capabilities/README.md +28 -36
  14. package/docs/sdks/cardissuing/README.md +35 -45
  15. package/docs/sdks/cards/README.md +35 -45
  16. package/docs/sdks/disputes/README.md +77 -99
  17. package/docs/sdks/endtoendencryption/README.md +14 -18
  18. package/docs/sdks/enrichedaddress/README.md +7 -9
  19. package/docs/sdks/enrichedprofile/README.md +7 -9
  20. package/docs/sdks/feeplans/README.md +49 -63
  21. package/docs/sdks/files/README.md +21 -27
  22. package/docs/sdks/industries/README.md +7 -9
  23. package/docs/sdks/institutions/README.md +98 -9
  24. package/docs/sdks/issuingtransactions/README.md +35 -45
  25. package/docs/sdks/onboarding/README.md +28 -36
  26. package/docs/sdks/paymentlinks/README.md +42 -54
  27. package/docs/sdks/paymentmethods/README.md +14 -18
  28. package/docs/sdks/ping/README.md +7 -9
  29. package/docs/sdks/receipts/README.md +14 -18
  30. package/docs/sdks/representatives/README.md +35 -45
  31. package/docs/sdks/scheduling/README.md +42 -54
  32. package/docs/sdks/sweeps/README.md +42 -54
  33. package/docs/sdks/terminalapplications/README.md +28 -36
  34. package/docs/sdks/transfers/README.md +77 -99
  35. package/docs/sdks/underwriting/README.md +14 -18
  36. package/docs/sdks/wallets/README.md +14 -18
  37. package/docs/sdks/wallettransactions/README.md +14 -18
  38. package/funcs/institutionsSearchInstitutions.d.ts +20 -0
  39. package/funcs/institutionsSearchInstitutions.d.ts.map +1 -0
  40. package/funcs/institutionsSearchInstitutions.js +129 -0
  41. package/funcs/institutionsSearchInstitutions.js.map +1 -0
  42. package/jsr.json +1 -1
  43. package/lib/config.d.ts +3 -3
  44. package/lib/config.js +3 -3
  45. package/mcp-server/mcp-server.js +1 -1
  46. package/mcp-server/server.d.ts.map +1 -1
  47. package/mcp-server/server.js +3 -1
  48. package/mcp-server/server.js.map +1 -1
  49. package/mcp-server/tools/institutionsSearchInstitutions.d.ts +8 -0
  50. package/mcp-server/tools/institutionsSearchInstitutions.d.ts.map +1 -0
  51. package/mcp-server/tools/institutionsSearchInstitutions.js +69 -0
  52. package/mcp-server/tools/institutionsSearchInstitutions.js.map +1 -0
  53. package/models/components/achinstitution.d.ts +40 -0
  54. package/models/components/achinstitution.d.ts.map +1 -0
  55. package/models/components/achinstitution.js +77 -0
  56. package/models/components/achinstitution.js.map +1 -0
  57. package/models/components/contact.d.ts +30 -0
  58. package/models/components/contact.d.ts.map +1 -0
  59. package/models/components/contact.js +70 -0
  60. package/models/components/contact.js.map +1 -0
  61. package/models/components/index.d.ts +7 -0
  62. package/models/components/index.d.ts.map +1 -1
  63. package/models/components/index.js +7 -0
  64. package/models/components/index.js.map +1 -1
  65. package/models/components/institutionssearchresponse.d.ts +36 -0
  66. package/models/components/institutionssearchresponse.d.ts.map +1 -0
  67. package/models/components/institutionssearchresponse.js +76 -0
  68. package/models/components/institutionssearchresponse.js.map +1 -0
  69. package/models/components/rtpinstitution.d.ts +37 -0
  70. package/models/components/rtpinstitution.d.ts.map +1 -0
  71. package/models/components/rtpinstitution.js +74 -0
  72. package/models/components/rtpinstitution.js.map +1 -0
  73. package/models/components/rtpservices.d.ts +37 -0
  74. package/models/components/rtpservices.d.ts.map +1 -0
  75. package/models/components/rtpservices.js +71 -0
  76. package/models/components/rtpservices.js.map +1 -0
  77. package/models/components/wireinstitution.d.ts +40 -0
  78. package/models/components/wireinstitution.d.ts.map +1 -0
  79. package/models/components/wireinstitution.js +77 -0
  80. package/models/components/wireinstitution.js.map +1 -0
  81. package/models/components/wireservices.d.ts +42 -0
  82. package/models/components/wireservices.d.ts.map +1 -0
  83. package/models/components/wireservices.js +73 -0
  84. package/models/components/wireservices.js.map +1 -0
  85. package/models/errors/apierror.d.ts +14 -2
  86. package/models/errors/apierror.d.ts.map +1 -1
  87. package/models/errors/apierror.js +1 -1
  88. package/models/errors/apierror.js.map +1 -1
  89. package/models/operations/index.d.ts +1 -0
  90. package/models/operations/index.d.ts.map +1 -1
  91. package/models/operations/index.js +1 -0
  92. package/models/operations/index.js.map +1 -1
  93. package/models/operations/searchinstitutions.d.ts +112 -0
  94. package/models/operations/searchinstitutions.d.ts.map +1 -0
  95. package/models/operations/searchinstitutions.js +149 -0
  96. package/models/operations/searchinstitutions.js.map +1 -0
  97. package/package.json +1 -1
  98. package/sdk/institutions.d.ts +11 -0
  99. package/sdk/institutions.d.ts.map +1 -1
  100. package/sdk/institutions.js +14 -0
  101. package/sdk/institutions.js.map +1 -1
  102. package/src/funcs/institutionsSearchInstitutions.ts +179 -0
  103. package/src/lib/config.ts +3 -3
  104. package/src/mcp-server/mcp-server.ts +1 -1
  105. package/src/mcp-server/server.ts +3 -1
  106. package/src/mcp-server/tools/institutionsSearchInstitutions.ts +43 -0
  107. package/src/models/components/achinstitution.ts +89 -0
  108. package/src/models/components/contact.ts +65 -0
  109. package/src/models/components/index.ts +7 -0
  110. package/src/models/components/institutionssearchresponse.ts +92 -0
  111. package/src/models/components/rtpinstitution.ts +79 -0
  112. package/src/models/components/rtpservices.ts +72 -0
  113. package/src/models/components/wireinstitution.ts +91 -0
  114. package/src/models/components/wireservices.ts +79 -0
  115. package/src/models/errors/apierror.ts +18 -3
  116. package/src/models/operations/index.ts +1 -0
  117. package/src/models/operations/searchinstitutions.ts +236 -0
  118. package/src/sdk/institutions.ts +22 -0
@@ -29,6 +29,7 @@ you'll need to specify the `/accounts/{accountID}/payment-methods.read` scope.
29
29
  import { Moov } from "@moovio/sdk";
30
30
 
31
31
  const moov = new Moov({
32
+ xMoovVersion: "v2024.01.00",
32
33
  security: {
33
34
  username: "",
34
35
  password: "",
@@ -40,7 +41,6 @@ async function run() {
40
41
  accountID: "f5503781-dfe4-4bcd-9487-5b5fe2b4d53b",
41
42
  });
42
43
 
43
- // Handle the result
44
44
  console.log(result);
45
45
  }
46
46
 
@@ -58,6 +58,7 @@ import { paymentMethodsList } from "@moovio/sdk/funcs/paymentMethodsList.js";
58
58
  // Use `MoovCore` for best tree-shaking performance.
59
59
  // You can create one instance of it to use across an application.
60
60
  const moov = new MoovCore({
61
+ xMoovVersion: "v2024.01.00",
61
62
  security: {
62
63
  username: "",
63
64
  password: "",
@@ -68,15 +69,12 @@ async function run() {
68
69
  const res = await paymentMethodsList(moov, {
69
70
  accountID: "f5503781-dfe4-4bcd-9487-5b5fe2b4d53b",
70
71
  });
71
-
72
- if (!res.ok) {
73
- throw res.error;
72
+ if (res.ok) {
73
+ const { value: result } = res;
74
+ console.log(result);
75
+ } else {
76
+ console.log("paymentMethodsList failed:", res.error);
74
77
  }
75
-
76
- const { value: result } = res;
77
-
78
- // Handle the result
79
- console.log(result);
80
78
  }
81
79
 
82
80
  run();
@@ -114,6 +112,7 @@ you'll need to specify the `/accounts/{accountID}/payment-methods.read` scope.
114
112
  import { Moov } from "@moovio/sdk";
115
113
 
116
114
  const moov = new Moov({
115
+ xMoovVersion: "v2024.01.00",
117
116
  security: {
118
117
  username: "",
119
118
  password: "",
@@ -126,7 +125,6 @@ async function run() {
126
125
  paymentMethodID: "aa740bf3-4c5f-459b-9370-4f7d4bea382b",
127
126
  });
128
127
 
129
- // Handle the result
130
128
  console.log(result);
131
129
  }
132
130
 
@@ -144,6 +142,7 @@ import { paymentMethodsGet } from "@moovio/sdk/funcs/paymentMethodsGet.js";
144
142
  // Use `MoovCore` for best tree-shaking performance.
145
143
  // You can create one instance of it to use across an application.
146
144
  const moov = new MoovCore({
145
+ xMoovVersion: "v2024.01.00",
147
146
  security: {
148
147
  username: "",
149
148
  password: "",
@@ -155,15 +154,12 @@ async function run() {
155
154
  accountID: "56878537-30b0-48ee-9c54-07ab3a8b243d",
156
155
  paymentMethodID: "aa740bf3-4c5f-459b-9370-4f7d4bea382b",
157
156
  });
158
-
159
- if (!res.ok) {
160
- throw res.error;
157
+ if (res.ok) {
158
+ const { value: result } = res;
159
+ console.log(result);
160
+ } else {
161
+ console.log("paymentMethodsGet failed:", res.error);
161
162
  }
162
-
163
- const { value: result } = res;
164
-
165
- // Handle the result
166
- console.log(result);
167
163
  }
168
164
 
169
165
  run();
@@ -23,6 +23,7 @@ you'll need to specify the `/ping.read` scope.
23
23
  import { Moov } from "@moovio/sdk";
24
24
 
25
25
  const moov = new Moov({
26
+ xMoovVersion: "v2024.01.00",
26
27
  security: {
27
28
  username: "",
28
29
  password: "",
@@ -32,7 +33,6 @@ const moov = new Moov({
32
33
  async function run() {
33
34
  const result = await moov.ping.ping({});
34
35
 
35
- // Handle the result
36
36
  console.log(result);
37
37
  }
38
38
 
@@ -50,6 +50,7 @@ import { pingPing } from "@moovio/sdk/funcs/pingPing.js";
50
50
  // Use `MoovCore` for best tree-shaking performance.
51
51
  // You can create one instance of it to use across an application.
52
52
  const moov = new MoovCore({
53
+ xMoovVersion: "v2024.01.00",
53
54
  security: {
54
55
  username: "",
55
56
  password: "",
@@ -58,15 +59,12 @@ const moov = new MoovCore({
58
59
 
59
60
  async function run() {
60
61
  const res = await pingPing(moov, {});
61
-
62
- if (!res.ok) {
63
- throw res.error;
62
+ if (res.ok) {
63
+ const { value: result } = res;
64
+ console.log(result);
65
+ } else {
66
+ console.log("pingPing failed:", res.error);
64
67
  }
65
-
66
- const { value: result } = res;
67
-
68
- // Handle the result
69
- console.log(result);
70
68
  }
71
69
 
72
70
  run();
@@ -27,6 +27,7 @@ you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
27
27
  import { Moov } from "@moovio/sdk";
28
28
 
29
29
  const moov = new Moov({
30
+ xMoovVersion: "v2024.01.00",
30
31
  security: {
31
32
  username: "",
32
33
  password: "",
@@ -36,7 +37,6 @@ const moov = new Moov({
36
37
  async function run() {
37
38
  const result = await moov.receipts.create([]);
38
39
 
39
- // Handle the result
40
40
  console.log(result);
41
41
  }
42
42
 
@@ -54,6 +54,7 @@ import { receiptsCreate } from "@moovio/sdk/funcs/receiptsCreate.js";
54
54
  // Use `MoovCore` for best tree-shaking performance.
55
55
  // You can create one instance of it to use across an application.
56
56
  const moov = new MoovCore({
57
+ xMoovVersion: "v2024.01.00",
57
58
  security: {
58
59
  username: "",
59
60
  password: "",
@@ -62,15 +63,12 @@ const moov = new MoovCore({
62
63
 
63
64
  async function run() {
64
65
  const res = await receiptsCreate(moov, []);
65
-
66
- if (!res.ok) {
67
- throw res.error;
66
+ if (res.ok) {
67
+ const { value: result } = res;
68
+ console.log(result);
69
+ } else {
70
+ console.log("receiptsCreate failed:", res.error);
68
71
  }
69
-
70
- const { value: result } = res;
71
-
72
- // Handle the result
73
- console.log(result);
74
72
  }
75
73
 
76
74
  run();
@@ -109,6 +107,7 @@ you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
109
107
  import { Moov } from "@moovio/sdk";
110
108
 
111
109
  const moov = new Moov({
110
+ xMoovVersion: "v2024.01.00",
112
111
  security: {
113
112
  username: "",
114
113
  password: "",
@@ -120,7 +119,6 @@ async function run() {
120
119
  id: "8508cf6c-9ce4-4e35-84c1-4b77320a620b",
121
120
  });
122
121
 
123
- // Handle the result
124
122
  console.log(result);
125
123
  }
126
124
 
@@ -138,6 +136,7 @@ import { receiptsList } from "@moovio/sdk/funcs/receiptsList.js";
138
136
  // Use `MoovCore` for best tree-shaking performance.
139
137
  // You can create one instance of it to use across an application.
140
138
  const moov = new MoovCore({
139
+ xMoovVersion: "v2024.01.00",
141
140
  security: {
142
141
  username: "",
143
142
  password: "",
@@ -148,15 +147,12 @@ async function run() {
148
147
  const res = await receiptsList(moov, {
149
148
  id: "8508cf6c-9ce4-4e35-84c1-4b77320a620b",
150
149
  });
151
-
152
- if (!res.ok) {
153
- throw res.error;
150
+ if (res.ok) {
151
+ const { value: result } = res;
152
+ console.log(result);
153
+ } else {
154
+ console.log("receiptsList failed:", res.error);
154
155
  }
155
-
156
- const { value: result } = res;
157
-
158
- // Handle the result
159
- console.log(result);
160
156
  }
161
157
 
162
158
  run();
@@ -59,6 +59,7 @@ you'll need to specify the `/accounts/{accountID}/representatives.write` scope.
59
59
  import { Moov } from "@moovio/sdk";
60
60
 
61
61
  const moov = new Moov({
62
+ xMoovVersion: "v2024.01.00",
62
63
  security: {
63
64
  username: "",
64
65
  password: "",
@@ -100,7 +101,6 @@ async function run() {
100
101
  },
101
102
  });
102
103
 
103
- // Handle the result
104
104
  console.log(result);
105
105
  }
106
106
 
@@ -118,6 +118,7 @@ import { representativesCreate } from "@moovio/sdk/funcs/representativesCreate.j
118
118
  // Use `MoovCore` for best tree-shaking performance.
119
119
  // You can create one instance of it to use across an application.
120
120
  const moov = new MoovCore({
121
+ xMoovVersion: "v2024.01.00",
121
122
  security: {
122
123
  username: "",
123
124
  password: "",
@@ -158,15 +159,12 @@ async function run() {
158
159
  },
159
160
  },
160
161
  });
161
-
162
- if (!res.ok) {
163
- throw res.error;
162
+ if (res.ok) {
163
+ const { value: result } = res;
164
+ console.log(result);
165
+ } else {
166
+ console.log("representativesCreate failed:", res.error);
164
167
  }
165
-
166
- const { value: result } = res;
167
-
168
- // Handle the result
169
- console.log(result);
170
168
  }
171
169
 
172
170
  run();
@@ -209,6 +207,7 @@ you'll need to specify the `/accounts/{accountID}/representatives.read` scope.
209
207
  import { Moov } from "@moovio/sdk";
210
208
 
211
209
  const moov = new Moov({
210
+ xMoovVersion: "v2024.01.00",
212
211
  security: {
213
212
  username: "",
214
213
  password: "",
@@ -220,7 +219,6 @@ async function run() {
220
219
  accountID: "aa071158-7ed6-4c18-af34-4fa37b755e53",
221
220
  });
222
221
 
223
- // Handle the result
224
222
  console.log(result);
225
223
  }
226
224
 
@@ -238,6 +236,7 @@ import { representativesList } from "@moovio/sdk/funcs/representativesList.js";
238
236
  // Use `MoovCore` for best tree-shaking performance.
239
237
  // You can create one instance of it to use across an application.
240
238
  const moov = new MoovCore({
239
+ xMoovVersion: "v2024.01.00",
241
240
  security: {
242
241
  username: "",
243
242
  password: "",
@@ -248,15 +247,12 @@ async function run() {
248
247
  const res = await representativesList(moov, {
249
248
  accountID: "aa071158-7ed6-4c18-af34-4fa37b755e53",
250
249
  });
251
-
252
- if (!res.ok) {
253
- throw res.error;
250
+ if (res.ok) {
251
+ const { value: result } = res;
252
+ console.log(result);
253
+ } else {
254
+ console.log("representativesList failed:", res.error);
254
255
  }
255
-
256
- const { value: result } = res;
257
-
258
- // Handle the result
259
- console.log(result);
260
256
  }
261
257
 
262
258
  run();
@@ -294,6 +290,7 @@ you'll need to specify the `/accounts/{accountID}/representatives.write` scope.
294
290
  import { Moov } from "@moovio/sdk";
295
291
 
296
292
  const moov = new Moov({
293
+ xMoovVersion: "v2024.01.00",
297
294
  security: {
298
295
  username: "",
299
296
  password: "",
@@ -306,7 +303,6 @@ async function run() {
306
303
  representativeID: "74d0f56b-b81b-467a-bc86-47a55fe5e503",
307
304
  });
308
305
 
309
- // Handle the result
310
306
  console.log(result);
311
307
  }
312
308
 
@@ -324,6 +320,7 @@ import { representativesDelete } from "@moovio/sdk/funcs/representativesDelete.j
324
320
  // Use `MoovCore` for best tree-shaking performance.
325
321
  // You can create one instance of it to use across an application.
326
322
  const moov = new MoovCore({
323
+ xMoovVersion: "v2024.01.00",
327
324
  security: {
328
325
  username: "",
329
326
  password: "",
@@ -335,15 +332,12 @@ async function run() {
335
332
  accountID: "23b950c7-3ccf-4edc-9566-07f765d57c73",
336
333
  representativeID: "74d0f56b-b81b-467a-bc86-47a55fe5e503",
337
334
  });
338
-
339
- if (!res.ok) {
340
- throw res.error;
335
+ if (res.ok) {
336
+ const { value: result } = res;
337
+ console.log(result);
338
+ } else {
339
+ console.log("representativesDelete failed:", res.error);
341
340
  }
342
-
343
- const { value: result } = res;
344
-
345
- // Handle the result
346
- console.log(result);
347
341
  }
348
342
 
349
343
  run();
@@ -382,6 +376,7 @@ you'll need to specify the `/accounts/{accountID}/representatives.read` scope.
382
376
  import { Moov } from "@moovio/sdk";
383
377
 
384
378
  const moov = new Moov({
379
+ xMoovVersion: "v2024.01.00",
385
380
  security: {
386
381
  username: "",
387
382
  password: "",
@@ -394,7 +389,6 @@ async function run() {
394
389
  representativeID: "00d87070-b167-48e6-be2f-198b5e1556c4",
395
390
  });
396
391
 
397
- // Handle the result
398
392
  console.log(result);
399
393
  }
400
394
 
@@ -412,6 +406,7 @@ import { representativesGet } from "@moovio/sdk/funcs/representativesGet.js";
412
406
  // Use `MoovCore` for best tree-shaking performance.
413
407
  // You can create one instance of it to use across an application.
414
408
  const moov = new MoovCore({
409
+ xMoovVersion: "v2024.01.00",
415
410
  security: {
416
411
  username: "",
417
412
  password: "",
@@ -423,15 +418,12 @@ async function run() {
423
418
  accountID: "071b8a57-e691-4e4b-9143-75f1a828ce9b",
424
419
  representativeID: "00d87070-b167-48e6-be2f-198b5e1556c4",
425
420
  });
426
-
427
- if (!res.ok) {
428
- throw res.error;
421
+ if (res.ok) {
422
+ const { value: result } = res;
423
+ console.log(result);
424
+ } else {
425
+ console.log("representativesGet failed:", res.error);
429
426
  }
430
-
431
- const { value: result } = res;
432
-
433
- // Handle the result
434
- console.log(result);
435
427
  }
436
428
 
437
429
  run();
@@ -482,6 +474,7 @@ you'll need to specify the `/accounts/{accountID}/representatives.write` scope.
482
474
  import { Moov } from "@moovio/sdk";
483
475
 
484
476
  const moov = new Moov({
477
+ xMoovVersion: "v2024.01.00",
485
478
  security: {
486
479
  username: "",
487
480
  password: "",
@@ -519,7 +512,6 @@ async function run() {
519
512
  },
520
513
  });
521
514
 
522
- // Handle the result
523
515
  console.log(result);
524
516
  }
525
517
 
@@ -537,6 +529,7 @@ import { representativesUpdate } from "@moovio/sdk/funcs/representativesUpdate.j
537
529
  // Use `MoovCore` for best tree-shaking performance.
538
530
  // You can create one instance of it to use across an application.
539
531
  const moov = new MoovCore({
532
+ xMoovVersion: "v2024.01.00",
540
533
  security: {
541
534
  username: "",
542
535
  password: "",
@@ -573,15 +566,12 @@ async function run() {
573
566
  },
574
567
  },
575
568
  });
576
-
577
- if (!res.ok) {
578
- throw res.error;
569
+ if (res.ok) {
570
+ const { value: result } = res;
571
+ console.log(result);
572
+ } else {
573
+ console.log("representativesUpdate failed:", res.error);
579
574
  }
580
-
581
- const { value: result } = res;
582
-
583
- // Handle the result
584
- console.log(result);
585
575
  }
586
576
 
587
577
  run();
@@ -43,6 +43,7 @@ you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
43
43
  import { Moov } from "@moovio/sdk";
44
44
 
45
45
  const moov = new Moov({
46
+ xMoovVersion: "v2024.01.00",
46
47
  security: {
47
48
  username: "",
48
49
  password: "",
@@ -154,7 +155,6 @@ async function run() {
154
155
  },
155
156
  });
156
157
 
157
- // Handle the result
158
158
  console.log(result);
159
159
  }
160
160
 
@@ -172,6 +172,7 @@ import { schedulingCreate } from "@moovio/sdk/funcs/schedulingCreate.js";
172
172
  // Use `MoovCore` for best tree-shaking performance.
173
173
  // You can create one instance of it to use across an application.
174
174
  const moov = new MoovCore({
175
+ xMoovVersion: "v2024.01.00",
175
176
  security: {
176
177
  username: "",
177
178
  password: "",
@@ -282,15 +283,12 @@ async function run() {
282
283
  },
283
284
  },
284
285
  });
285
-
286
- if (!res.ok) {
287
- throw res.error;
286
+ if (res.ok) {
287
+ const { value: result } = res;
288
+ console.log(result);
289
+ } else {
290
+ console.log("schedulingCreate failed:", res.error);
288
291
  }
289
-
290
- const { value: result } = res;
291
-
292
- // Handle the result
293
- console.log(result);
294
292
  }
295
293
 
296
294
  run();
@@ -330,6 +328,7 @@ you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
330
328
  import { Moov } from "@moovio/sdk";
331
329
 
332
330
  const moov = new Moov({
331
+ xMoovVersion: "v2024.01.00",
333
332
  security: {
334
333
  username: "",
335
334
  password: "",
@@ -343,7 +342,6 @@ async function run() {
343
342
  accountID: "b69f6366-984e-40f9-82a0-65335a43431d",
344
343
  });
345
344
 
346
- // Handle the result
347
345
  console.log(result);
348
346
  }
349
347
 
@@ -361,6 +359,7 @@ import { schedulingList } from "@moovio/sdk/funcs/schedulingList.js";
361
359
  // Use `MoovCore` for best tree-shaking performance.
362
360
  // You can create one instance of it to use across an application.
363
361
  const moov = new MoovCore({
362
+ xMoovVersion: "v2024.01.00",
364
363
  security: {
365
364
  username: "",
366
365
  password: "",
@@ -373,15 +372,12 @@ async function run() {
373
372
  count: 20,
374
373
  accountID: "b69f6366-984e-40f9-82a0-65335a43431d",
375
374
  });
376
-
377
- if (!res.ok) {
378
- throw res.error;
375
+ if (res.ok) {
376
+ const { value: result } = res;
377
+ console.log(result);
378
+ } else {
379
+ console.log("schedulingList failed:", res.error);
379
380
  }
380
-
381
- const { value: result } = res;
382
-
383
- // Handle the result
384
- console.log(result);
385
381
  }
386
382
 
387
383
  run();
@@ -419,6 +415,7 @@ you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
419
415
  import { Moov } from "@moovio/sdk";
420
416
 
421
417
  const moov = new Moov({
418
+ xMoovVersion: "v2024.01.00",
422
419
  security: {
423
420
  username: "",
424
421
  password: "",
@@ -563,7 +560,6 @@ async function run() {
563
560
  },
564
561
  });
565
562
 
566
- // Handle the result
567
563
  console.log(result);
568
564
  }
569
565
 
@@ -581,6 +577,7 @@ import { schedulingUpdate } from "@moovio/sdk/funcs/schedulingUpdate.js";
581
577
  // Use `MoovCore` for best tree-shaking performance.
582
578
  // You can create one instance of it to use across an application.
583
579
  const moov = new MoovCore({
580
+ xMoovVersion: "v2024.01.00",
584
581
  security: {
585
582
  username: "",
586
583
  password: "",
@@ -724,15 +721,12 @@ async function run() {
724
721
  },
725
722
  },
726
723
  });
727
-
728
- if (!res.ok) {
729
- throw res.error;
724
+ if (res.ok) {
725
+ const { value: result } = res;
726
+ console.log(result);
727
+ } else {
728
+ console.log("schedulingUpdate failed:", res.error);
730
729
  }
731
-
732
- const { value: result } = res;
733
-
734
- // Handle the result
735
- console.log(result);
736
730
  }
737
731
 
738
732
  run();
@@ -772,6 +766,7 @@ you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
772
766
  import { Moov } from "@moovio/sdk";
773
767
 
774
768
  const moov = new Moov({
769
+ xMoovVersion: "v2024.01.00",
775
770
  security: {
776
771
  username: "",
777
772
  password: "",
@@ -784,7 +779,6 @@ async function run() {
784
779
  scheduleID: "55487e07-f3b7-44e8-b6f3-64fc85701c34",
785
780
  });
786
781
 
787
- // Handle the result
788
782
  console.log(result);
789
783
  }
790
784
 
@@ -802,6 +796,7 @@ import { schedulingGet } from "@moovio/sdk/funcs/schedulingGet.js";
802
796
  // Use `MoovCore` for best tree-shaking performance.
803
797
  // You can create one instance of it to use across an application.
804
798
  const moov = new MoovCore({
799
+ xMoovVersion: "v2024.01.00",
805
800
  security: {
806
801
  username: "",
807
802
  password: "",
@@ -813,15 +808,12 @@ async function run() {
813
808
  accountID: "31afd98b-eb55-41b3-8a4f-0ee8ea69e4e0",
814
809
  scheduleID: "55487e07-f3b7-44e8-b6f3-64fc85701c34",
815
810
  });
816
-
817
- if (!res.ok) {
818
- throw res.error;
811
+ if (res.ok) {
812
+ const { value: result } = res;
813
+ console.log(result);
814
+ } else {
815
+ console.log("schedulingGet failed:", res.error);
819
816
  }
820
-
821
- const { value: result } = res;
822
-
823
- // Handle the result
824
- console.log(result);
825
817
  }
826
818
 
827
819
  run();
@@ -859,6 +851,7 @@ you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
859
851
  import { Moov } from "@moovio/sdk";
860
852
 
861
853
  const moov = new Moov({
854
+ xMoovVersion: "v2024.01.00",
862
855
  security: {
863
856
  username: "",
864
857
  password: "",
@@ -871,7 +864,6 @@ async function run() {
871
864
  scheduleID: "5ca67de0-63f6-4cb7-b94a-6c84616ffe03",
872
865
  });
873
866
 
874
- // Handle the result
875
867
  console.log(result);
876
868
  }
877
869
 
@@ -889,6 +881,7 @@ import { schedulingCancel } from "@moovio/sdk/funcs/schedulingCancel.js";
889
881
  // Use `MoovCore` for best tree-shaking performance.
890
882
  // You can create one instance of it to use across an application.
891
883
  const moov = new MoovCore({
884
+ xMoovVersion: "v2024.01.00",
892
885
  security: {
893
886
  username: "",
894
887
  password: "",
@@ -900,15 +893,12 @@ async function run() {
900
893
  accountID: "e89edcfc-19ca-40eb-802b-a35100dea24d",
901
894
  scheduleID: "5ca67de0-63f6-4cb7-b94a-6c84616ffe03",
902
895
  });
903
-
904
- if (!res.ok) {
905
- throw res.error;
896
+ if (res.ok) {
897
+ const { value: result } = res;
898
+ console.log(result);
899
+ } else {
900
+ console.log("schedulingCancel failed:", res.error);
906
901
  }
907
-
908
- const { value: result } = res;
909
-
910
- // Handle the result
911
- console.log(result);
912
902
  }
913
903
 
914
904
  run();
@@ -947,6 +937,7 @@ you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
947
937
  import { Moov } from "@moovio/sdk";
948
938
 
949
939
  const moov = new Moov({
940
+ xMoovVersion: "v2024.01.00",
950
941
  security: {
951
942
  username: "",
952
943
  password: "",
@@ -960,7 +951,6 @@ async function run() {
960
951
  occurrenceFilter: "<value>",
961
952
  });
962
953
 
963
- // Handle the result
964
954
  console.log(result);
965
955
  }
966
956
 
@@ -978,6 +968,7 @@ import { schedulingGetOccurrance } from "@moovio/sdk/funcs/schedulingGetOccurran
978
968
  // Use `MoovCore` for best tree-shaking performance.
979
969
  // You can create one instance of it to use across an application.
980
970
  const moov = new MoovCore({
971
+ xMoovVersion: "v2024.01.00",
981
972
  security: {
982
973
  username: "",
983
974
  password: "",
@@ -990,15 +981,12 @@ async function run() {
990
981
  scheduleID: "289e94cd-66f1-4df5-999f-46d0f40b4ce9",
991
982
  occurrenceFilter: "<value>",
992
983
  });
993
-
994
- if (!res.ok) {
995
- throw res.error;
984
+ if (res.ok) {
985
+ const { value: result } = res;
986
+ console.log(result);
987
+ } else {
988
+ console.log("schedulingGetOccurrance failed:", res.error);
996
989
  }
997
-
998
- const { value: result } = res;
999
-
1000
- // Handle the result
1001
- console.log(result);
1002
990
  }
1003
991
 
1004
992
  run();