@polyguard/sdk 1.4.2 → 1.5.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 (116) hide show
  1. package/LICENSE +200 -0
  2. package/README.md +328 -0
  3. package/dist/sdk.esm.js +16 -4
  4. package/dist/sdk.js +16 -4
  5. package/dist/server.esm.js +83 -0
  6. package/package.json +14 -3
  7. package/dist/sdk.global.js +0 -11256
  8. package/scripts/regenerate-client.sh +0 -59
  9. package/src/PolyguardClient.js +0 -25
  10. package/src/PolyguardWebsocketClientImpl.js +0 -183
  11. package/src/__tests__/PolyguardClient.test.js +0 -65
  12. package/src/__tests__/PolyguardWebsocketClientImpl.test.js +0 -574
  13. package/src/__tests__/helpers/fixtures.js +0 -27
  14. package/src/__tests__/helpers/mockWebSocket.js +0 -66
  15. package/src/__tests__/sidebar.test.js +0 -289
  16. package/src/browser.js +0 -9
  17. package/src/generated/.babelrc +0 -33
  18. package/src/generated/.openapi-generator/FILES +0 -63
  19. package/src/generated/.openapi-generator/VERSION +0 -1
  20. package/src/generated/.openapi-generator-ignore +0 -23
  21. package/src/generated/.travis.yml +0 -5
  22. package/src/generated/README.md +0 -211
  23. package/src/generated/docs/ApiControllersPslStirCallRequest.md +0 -18
  24. package/src/generated/docs/ApiModelsApiCallModelsCallRequest.md +0 -12
  25. package/src/generated/docs/AppId.md +0 -8
  26. package/src/generated/docs/AppleApi.md +0 -88
  27. package/src/generated/docs/AuthApi.md +0 -1464
  28. package/src/generated/docs/BlockingApi.md +0 -208
  29. package/src/generated/docs/CallsApi.md +0 -140
  30. package/src/generated/docs/Certainty.md +0 -8
  31. package/src/generated/docs/CreateLinkRequest.md +0 -12
  32. package/src/generated/docs/DefaultApi.md +0 -128
  33. package/src/generated/docs/HTTPValidationError.md +0 -9
  34. package/src/generated/docs/InviteRequestModel.md +0 -10
  35. package/src/generated/docs/JWTRequest.md +0 -11
  36. package/src/generated/docs/LinksApi.md +0 -162
  37. package/src/generated/docs/NumberVerification.md +0 -10
  38. package/src/generated/docs/SdkApi.md +0 -54
  39. package/src/generated/docs/SecureLinksApi.md +0 -614
  40. package/src/generated/docs/StartAttestationRequest.md +0 -9
  41. package/src/generated/docs/StartMeetingRequest.md +0 -9
  42. package/src/generated/docs/StirApi.md +0 -52
  43. package/src/generated/docs/TwilioApi.md +0 -138
  44. package/src/generated/docs/UsersApi.md +0 -362
  45. package/src/generated/docs/ValidationError.md +0 -11
  46. package/src/generated/docs/ValidationErrorLocInner.md +0 -8
  47. package/src/generated/docs/VeriffApi.md +0 -188
  48. package/src/generated/docs/VeriffSessionRequest.md +0 -10
  49. package/src/generated/docs/VerifyRequest.md +0 -10
  50. package/src/generated/docs/WellKnownApi.md +0 -128
  51. package/src/generated/docs/ZoomApi.md +0 -848
  52. package/src/generated/git_push.sh +0 -57
  53. package/src/generated/mocha.opts +0 -1
  54. package/src/generated/package.json +0 -46
  55. package/src/generated/src/ApiClient.js +0 -677
  56. package/src/generated/src/api/AppleApi.js +0 -109
  57. package/src/generated/src/api/AuthApi.js +0 -1512
  58. package/src/generated/src/api/BlockingApi.js +0 -217
  59. package/src/generated/src/api/CallsApi.js +0 -164
  60. package/src/generated/src/api/DefaultApi.js +0 -145
  61. package/src/generated/src/api/LinksApi.js +0 -195
  62. package/src/generated/src/api/SdkApi.js +0 -81
  63. package/src/generated/src/api/SecureLinksApi.js +0 -670
  64. package/src/generated/src/api/StirApi.js +0 -80
  65. package/src/generated/src/api/TwilioApi.js +0 -158
  66. package/src/generated/src/api/UsersApi.js +0 -375
  67. package/src/generated/src/api/VeriffApi.js +0 -209
  68. package/src/generated/src/api/WellKnownApi.js +0 -145
  69. package/src/generated/src/api/ZoomApi.js +0 -823
  70. package/src/generated/src/index.js +0 -244
  71. package/src/generated/src/model/ApiControllersPslStirCallRequest.js +0 -211
  72. package/src/generated/src/model/ApiModelsApiCallModelsCallRequest.js +0 -119
  73. package/src/generated/src/model/CreateLinkRequest.js +0 -131
  74. package/src/generated/src/model/HTTPValidationError.js +0 -94
  75. package/src/generated/src/model/InviteRequestModel.js +0 -109
  76. package/src/generated/src/model/JWTRequest.js +0 -113
  77. package/src/generated/src/model/NumberVerification.js +0 -107
  78. package/src/generated/src/model/StartAttestationRequest.js +0 -95
  79. package/src/generated/src/model/StartMeetingRequest.js +0 -95
  80. package/src/generated/src/model/ValidationError.js +0 -130
  81. package/src/generated/src/model/VeriffSessionRequest.js +0 -107
  82. package/src/generated/src/model/VerifyRequest.js +0 -109
  83. package/src/generated/test/api/AppleApi.spec.js +0 -73
  84. package/src/generated/test/api/AuthApi.spec.js +0 -353
  85. package/src/generated/test/api/BlockingApi.spec.js +0 -103
  86. package/src/generated/test/api/CallsApi.spec.js +0 -83
  87. package/src/generated/test/api/DefaultApi.spec.js +0 -73
  88. package/src/generated/test/api/LinksApi.spec.js +0 -83
  89. package/src/generated/test/api/SdkApi.spec.js +0 -63
  90. package/src/generated/test/api/SecureLinksApi.spec.js +0 -143
  91. package/src/generated/test/api/StirApi.spec.js +0 -63
  92. package/src/generated/test/api/TwilioApi.spec.js +0 -83
  93. package/src/generated/test/api/UsersApi.spec.js +0 -133
  94. package/src/generated/test/api/VeriffApi.spec.js +0 -93
  95. package/src/generated/test/api/WellKnownApi.spec.js +0 -83
  96. package/src/generated/test/api/ZoomApi.spec.js +0 -213
  97. package/src/generated/test/model/ApiControllersPslStirCallRequest.spec.js +0 -119
  98. package/src/generated/test/model/ApiModelsApiCallModelsCallRequest.spec.js +0 -83
  99. package/src/generated/test/model/AppId.spec.js +0 -59
  100. package/src/generated/test/model/Certainty.spec.js +0 -59
  101. package/src/generated/test/model/CreateLinkRequest.spec.js +0 -83
  102. package/src/generated/test/model/HTTPValidationError.spec.js +0 -65
  103. package/src/generated/test/model/InviteRequestModel.spec.js +0 -71
  104. package/src/generated/test/model/JWTRequest.spec.js +0 -77
  105. package/src/generated/test/model/NumberVerification.spec.js +0 -71
  106. package/src/generated/test/model/StartAttestationRequest.spec.js +0 -65
  107. package/src/generated/test/model/StartMeetingRequest.spec.js +0 -65
  108. package/src/generated/test/model/ValidationError.spec.js +0 -77
  109. package/src/generated/test/model/ValidationErrorLocInner.spec.js +0 -59
  110. package/src/generated/test/model/VeriffSessionRequest.spec.js +0 -71
  111. package/src/generated/test/model/VerifyRequest.spec.js +0 -71
  112. package/src/index.js +0 -16
  113. package/src/messageHandler.js +0 -121
  114. package/src/ticketService.js +0 -24
  115. package/src/ui.js +0 -88
  116. package/vitest.config.js +0 -10
@@ -1,353 +0,0 @@
1
- /**
2
- * FastAPI
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: 0.1.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- *
12
- */
13
-
14
- (function(root, factory) {
15
- if (typeof define === 'function' && define.amd) {
16
- // AMD.
17
- define(['expect.js', process.cwd()+'/src/index'], factory);
18
- } else if (typeof module === 'object' && module.exports) {
19
- // CommonJS-like environments that support module.exports, like Node.
20
- factory(require('expect.js'), require(process.cwd()+'/src/index'));
21
- } else {
22
- // Browser globals (root is window)
23
- factory(root.expect, root.FastApi);
24
- }
25
- }(this, function(expect, FastApi) {
26
- 'use strict';
27
-
28
- var instance;
29
-
30
- beforeEach(function() {
31
- instance = new FastApi.AuthApi();
32
- });
33
-
34
- var getProperty = function(object, getter, property) {
35
- // Use getter method if present; otherwise, get the property directly.
36
- if (typeof object[getter] === 'function')
37
- return object[getter]();
38
- else
39
- return object[property];
40
- }
41
-
42
- var setProperty = function(object, setter, property, value) {
43
- // Use setter method if present; otherwise, set the property directly.
44
- if (typeof object[setter] === 'function')
45
- object[setter](value);
46
- else
47
- object[property] = value;
48
- }
49
-
50
- describe('AuthApi', function() {
51
- describe('createTicketAuthTicketAppIdPost', function() {
52
- it('should call createTicketAuthTicketAppIdPost successfully', function(done) {
53
- //uncomment below and update the code to test createTicketAuthTicketAppIdPost
54
- //instance.createTicketAuthTicketAppIdPost(function(error) {
55
- // if (error) throw error;
56
- //expect().to.be();
57
- //});
58
- done();
59
- });
60
- });
61
- describe('createTicketAuthTicketAppIdPost_0', function() {
62
- it('should call createTicketAuthTicketAppIdPost_0 successfully', function(done) {
63
- //uncomment below and update the code to test createTicketAuthTicketAppIdPost_0
64
- //instance.createTicketAuthTicketAppIdPost_0(function(error) {
65
- // if (error) throw error;
66
- //expect().to.be();
67
- //});
68
- done();
69
- });
70
- });
71
- describe('getLegacyRedirectInfoAuthRedirectAppIdLinkUuidGet', function() {
72
- it('should call getLegacyRedirectInfoAuthRedirectAppIdLinkUuidGet successfully', function(done) {
73
- //uncomment below and update the code to test getLegacyRedirectInfoAuthRedirectAppIdLinkUuidGet
74
- //instance.getLegacyRedirectInfoAuthRedirectAppIdLinkUuidGet(function(error) {
75
- // if (error) throw error;
76
- //expect().to.be();
77
- //});
78
- done();
79
- });
80
- });
81
- describe('getLegacyRedirectInfoAuthRedirectAppIdLinkUuidGet_0', function() {
82
- it('should call getLegacyRedirectInfoAuthRedirectAppIdLinkUuidGet_0 successfully', function(done) {
83
- //uncomment below and update the code to test getLegacyRedirectInfoAuthRedirectAppIdLinkUuidGet_0
84
- //instance.getLegacyRedirectInfoAuthRedirectAppIdLinkUuidGet_0(function(error) {
85
- // if (error) throw error;
86
- //expect().to.be();
87
- //});
88
- done();
89
- });
90
- });
91
- describe('getRedirectInfoAuthPreviewAppIdLinkUuidGet', function() {
92
- it('should call getRedirectInfoAuthPreviewAppIdLinkUuidGet successfully', function(done) {
93
- //uncomment below and update the code to test getRedirectInfoAuthPreviewAppIdLinkUuidGet
94
- //instance.getRedirectInfoAuthPreviewAppIdLinkUuidGet(function(error) {
95
- // if (error) throw error;
96
- //expect().to.be();
97
- //});
98
- done();
99
- });
100
- });
101
- describe('getRedirectInfoAuthPreviewAppIdLinkUuidGet_0', function() {
102
- it('should call getRedirectInfoAuthPreviewAppIdLinkUuidGet_0 successfully', function(done) {
103
- //uncomment below and update the code to test getRedirectInfoAuthPreviewAppIdLinkUuidGet_0
104
- //instance.getRedirectInfoAuthPreviewAppIdLinkUuidGet_0(function(error) {
105
- // if (error) throw error;
106
- //expect().to.be();
107
- //});
108
- done();
109
- });
110
- });
111
- describe('getSvgResponseAuthScanAppIdLinkUuidGet', function() {
112
- it('should call getSvgResponseAuthScanAppIdLinkUuidGet successfully', function(done) {
113
- //uncomment below and update the code to test getSvgResponseAuthScanAppIdLinkUuidGet
114
- //instance.getSvgResponseAuthScanAppIdLinkUuidGet(function(error) {
115
- // if (error) throw error;
116
- //expect().to.be();
117
- //});
118
- done();
119
- });
120
- });
121
- describe('getSvgResponseAuthScanAppIdLinkUuidGet_0', function() {
122
- it('should call getSvgResponseAuthScanAppIdLinkUuidGet_0 successfully', function(done) {
123
- //uncomment below and update the code to test getSvgResponseAuthScanAppIdLinkUuidGet_0
124
- //instance.getSvgResponseAuthScanAppIdLinkUuidGet_0(function(error) {
125
- // if (error) throw error;
126
- //expect().to.be();
127
- //});
128
- done();
129
- });
130
- });
131
- describe('pgCompleteRedirectAuthRedirectAppIdLinkUuidPost', function() {
132
- it('should call pgCompleteRedirectAuthRedirectAppIdLinkUuidPost successfully', function(done) {
133
- //uncomment below and update the code to test pgCompleteRedirectAuthRedirectAppIdLinkUuidPost
134
- //instance.pgCompleteRedirectAuthRedirectAppIdLinkUuidPost(function(error) {
135
- // if (error) throw error;
136
- //expect().to.be();
137
- //});
138
- done();
139
- });
140
- });
141
- describe('pgCompleteRedirectAuthRedirectAppIdLinkUuidPost_0', function() {
142
- it('should call pgCompleteRedirectAuthRedirectAppIdLinkUuidPost_0 successfully', function(done) {
143
- //uncomment below and update the code to test pgCompleteRedirectAuthRedirectAppIdLinkUuidPost_0
144
- //instance.pgCompleteRedirectAuthRedirectAppIdLinkUuidPost_0(function(error) {
145
- // if (error) throw error;
146
- //expect().to.be();
147
- //});
148
- done();
149
- });
150
- });
151
- describe('pgCreateLinkAuthLinkAppIdPut', function() {
152
- it('should call pgCreateLinkAuthLinkAppIdPut successfully', function(done) {
153
- //uncomment below and update the code to test pgCreateLinkAuthLinkAppIdPut
154
- //instance.pgCreateLinkAuthLinkAppIdPut(function(error) {
155
- // if (error) throw error;
156
- //expect().to.be();
157
- //});
158
- done();
159
- });
160
- });
161
- describe('pgCreateLinkAuthLinkAppIdPut_0', function() {
162
- it('should call pgCreateLinkAuthLinkAppIdPut_0 successfully', function(done) {
163
- //uncomment below and update the code to test pgCreateLinkAuthLinkAppIdPut_0
164
- //instance.pgCreateLinkAuthLinkAppIdPut_0(function(error) {
165
- // if (error) throw error;
166
- //expect().to.be();
167
- //});
168
- done();
169
- });
170
- });
171
- describe('pgDeleteLinkAuthLinkAppIdLinkUuidDelete', function() {
172
- it('should call pgDeleteLinkAuthLinkAppIdLinkUuidDelete successfully', function(done) {
173
- //uncomment below and update the code to test pgDeleteLinkAuthLinkAppIdLinkUuidDelete
174
- //instance.pgDeleteLinkAuthLinkAppIdLinkUuidDelete(function(error) {
175
- // if (error) throw error;
176
- //expect().to.be();
177
- //});
178
- done();
179
- });
180
- });
181
- describe('pgDeleteLinkAuthLinkAppIdLinkUuidDelete_0', function() {
182
- it('should call pgDeleteLinkAuthLinkAppIdLinkUuidDelete_0 successfully', function(done) {
183
- //uncomment below and update the code to test pgDeleteLinkAuthLinkAppIdLinkUuidDelete_0
184
- //instance.pgDeleteLinkAuthLinkAppIdLinkUuidDelete_0(function(error) {
185
- // if (error) throw error;
186
- //expect().to.be();
187
- //});
188
- done();
189
- });
190
- });
191
- describe('pgGetMeetingDetailsAuthZoomMeetingMeetingUuidGet', function() {
192
- it('should call pgGetMeetingDetailsAuthZoomMeetingMeetingUuidGet successfully', function(done) {
193
- //uncomment below and update the code to test pgGetMeetingDetailsAuthZoomMeetingMeetingUuidGet
194
- //instance.pgGetMeetingDetailsAuthZoomMeetingMeetingUuidGet(function(error) {
195
- // if (error) throw error;
196
- //expect().to.be();
197
- //});
198
- done();
199
- });
200
- });
201
- describe('pgGetMeetingDetailsAuthZoomMeetingMeetingUuidGet_0', function() {
202
- it('should call pgGetMeetingDetailsAuthZoomMeetingMeetingUuidGet_0 successfully', function(done) {
203
- //uncomment below and update the code to test pgGetMeetingDetailsAuthZoomMeetingMeetingUuidGet_0
204
- //instance.pgGetMeetingDetailsAuthZoomMeetingMeetingUuidGet_0(function(error) {
205
- // if (error) throw error;
206
- //expect().to.be();
207
- //});
208
- done();
209
- });
210
- });
211
- describe('pgListMeetingLinksAuthListlinksAccountIdGet', function() {
212
- it('should call pgListMeetingLinksAuthListlinksAccountIdGet successfully', function(done) {
213
- //uncomment below and update the code to test pgListMeetingLinksAuthListlinksAccountIdGet
214
- //instance.pgListMeetingLinksAuthListlinksAccountIdGet(function(error) {
215
- // if (error) throw error;
216
- //expect().to.be();
217
- //});
218
- done();
219
- });
220
- });
221
- describe('pgListMeetingLinksAuthListlinksAccountIdGet_0', function() {
222
- it('should call pgListMeetingLinksAuthListlinksAccountIdGet_0 successfully', function(done) {
223
- //uncomment below and update the code to test pgListMeetingLinksAuthListlinksAccountIdGet_0
224
- //instance.pgListMeetingLinksAuthListlinksAccountIdGet_0(function(error) {
225
- // if (error) throw error;
226
- //expect().to.be();
227
- //});
228
- done();
229
- });
230
- });
231
- describe('pgLoginAuthLinkAppIdLinkUuidGet', function() {
232
- it('should call pgLoginAuthLinkAppIdLinkUuidGet successfully', function(done) {
233
- //uncomment below and update the code to test pgLoginAuthLinkAppIdLinkUuidGet
234
- //instance.pgLoginAuthLinkAppIdLinkUuidGet(function(error) {
235
- // if (error) throw error;
236
- //expect().to.be();
237
- //});
238
- done();
239
- });
240
- });
241
- describe('pgLoginAuthLinkAppIdLinkUuidGet_0', function() {
242
- it('should call pgLoginAuthLinkAppIdLinkUuidGet_0 successfully', function(done) {
243
- //uncomment below and update the code to test pgLoginAuthLinkAppIdLinkUuidGet_0
244
- //instance.pgLoginAuthLinkAppIdLinkUuidGet_0(function(error) {
245
- // if (error) throw error;
246
- //expect().to.be();
247
- //});
248
- done();
249
- });
250
- });
251
- describe('pgLoginMLinkUuidGet', function() {
252
- it('should call pgLoginMLinkUuidGet successfully', function(done) {
253
- //uncomment below and update the code to test pgLoginMLinkUuidGet
254
- //instance.pgLoginMLinkUuidGet(function(error) {
255
- // if (error) throw error;
256
- //expect().to.be();
257
- //});
258
- done();
259
- });
260
- });
261
- describe('pgLoginMLinkUuidGet_0', function() {
262
- it('should call pgLoginMLinkUuidGet_0 successfully', function(done) {
263
- //uncomment below and update the code to test pgLoginMLinkUuidGet_0
264
- //instance.pgLoginMLinkUuidGet_0(function(error) {
265
- // if (error) throw error;
266
- //expect().to.be();
267
- //});
268
- done();
269
- });
270
- });
271
- describe('pgMobileRedirectMobileLinkUuidGet', function() {
272
- it('should call pgMobileRedirectMobileLinkUuidGet successfully', function(done) {
273
- //uncomment below and update the code to test pgMobileRedirectMobileLinkUuidGet
274
- //instance.pgMobileRedirectMobileLinkUuidGet(function(error) {
275
- // if (error) throw error;
276
- //expect().to.be();
277
- //});
278
- done();
279
- });
280
- });
281
- describe('pgMobileRedirectMobileLinkUuidGet_0', function() {
282
- it('should call pgMobileRedirectMobileLinkUuidGet_0 successfully', function(done) {
283
- //uncomment below and update the code to test pgMobileRedirectMobileLinkUuidGet_0
284
- //instance.pgMobileRedirectMobileLinkUuidGet_0(function(error) {
285
- // if (error) throw error;
286
- //expect().to.be();
287
- //});
288
- done();
289
- });
290
- });
291
- describe('pgPollAuthPollPcreGet', function() {
292
- it('should call pgPollAuthPollPcreGet successfully', function(done) {
293
- //uncomment below and update the code to test pgPollAuthPollPcreGet
294
- //instance.pgPollAuthPollPcreGet(function(error) {
295
- // if (error) throw error;
296
- //expect().to.be();
297
- //});
298
- done();
299
- });
300
- });
301
- describe('pgPollAuthPollPcreGet_0', function() {
302
- it('should call pgPollAuthPollPcreGet_0 successfully', function(done) {
303
- //uncomment below and update the code to test pgPollAuthPollPcreGet_0
304
- //instance.pgPollAuthPollPcreGet_0(function(error) {
305
- // if (error) throw error;
306
- //expect().to.be();
307
- //});
308
- done();
309
- });
310
- });
311
- describe('pgPreviewAuthRedirectAppIdLinkUuidHead', function() {
312
- it('should call pgPreviewAuthRedirectAppIdLinkUuidHead successfully', function(done) {
313
- //uncomment below and update the code to test pgPreviewAuthRedirectAppIdLinkUuidHead
314
- //instance.pgPreviewAuthRedirectAppIdLinkUuidHead(function(error) {
315
- // if (error) throw error;
316
- //expect().to.be();
317
- //});
318
- done();
319
- });
320
- });
321
- describe('pgPreviewAuthRedirectAppIdLinkUuidHead_0', function() {
322
- it('should call pgPreviewAuthRedirectAppIdLinkUuidHead_0 successfully', function(done) {
323
- //uncomment below and update the code to test pgPreviewAuthRedirectAppIdLinkUuidHead_0
324
- //instance.pgPreviewAuthRedirectAppIdLinkUuidHead_0(function(error) {
325
- // if (error) throw error;
326
- //expect().to.be();
327
- //});
328
- done();
329
- });
330
- });
331
- describe('pgStartZoomMeetingAuthZoomStartAppIdLinkUuidPost', function() {
332
- it('should call pgStartZoomMeetingAuthZoomStartAppIdLinkUuidPost successfully', function(done) {
333
- //uncomment below and update the code to test pgStartZoomMeetingAuthZoomStartAppIdLinkUuidPost
334
- //instance.pgStartZoomMeetingAuthZoomStartAppIdLinkUuidPost(function(error) {
335
- // if (error) throw error;
336
- //expect().to.be();
337
- //});
338
- done();
339
- });
340
- });
341
- describe('pgStartZoomMeetingAuthZoomStartAppIdLinkUuidPost_0', function() {
342
- it('should call pgStartZoomMeetingAuthZoomStartAppIdLinkUuidPost_0 successfully', function(done) {
343
- //uncomment below and update the code to test pgStartZoomMeetingAuthZoomStartAppIdLinkUuidPost_0
344
- //instance.pgStartZoomMeetingAuthZoomStartAppIdLinkUuidPost_0(function(error) {
345
- // if (error) throw error;
346
- //expect().to.be();
347
- //});
348
- done();
349
- });
350
- });
351
- });
352
-
353
- }));
@@ -1,103 +0,0 @@
1
- /**
2
- * FastAPI
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: 0.1.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- *
12
- */
13
-
14
- (function(root, factory) {
15
- if (typeof define === 'function' && define.amd) {
16
- // AMD.
17
- define(['expect.js', process.cwd()+'/src/index'], factory);
18
- } else if (typeof module === 'object' && module.exports) {
19
- // CommonJS-like environments that support module.exports, like Node.
20
- factory(require('expect.js'), require(process.cwd()+'/src/index'));
21
- } else {
22
- // Browser globals (root is window)
23
- factory(root.expect, root.FastApi);
24
- }
25
- }(this, function(expect, FastApi) {
26
- 'use strict';
27
-
28
- var instance;
29
-
30
- beforeEach(function() {
31
- instance = new FastApi.BlockingApi();
32
- });
33
-
34
- var getProperty = function(object, getter, property) {
35
- // Use getter method if present; otherwise, get the property directly.
36
- if (typeof object[getter] === 'function')
37
- return object[getter]();
38
- else
39
- return object[property];
40
- }
41
-
42
- var setProperty = function(object, setter, property, value) {
43
- // Use setter method if present; otherwise, set the property directly.
44
- if (typeof object[setter] === 'function')
45
- object[setter](value);
46
- else
47
- object[property] = value;
48
- }
49
-
50
- describe('BlockingApi', function() {
51
- describe('ftcDeleteBlockingFtcDelete', function() {
52
- it('should call ftcDeleteBlockingFtcDelete successfully', function(done) {
53
- //uncomment below and update the code to test ftcDeleteBlockingFtcDelete
54
- //instance.ftcDeleteBlockingFtcDelete(function(error) {
55
- // if (error) throw error;
56
- //expect().to.be();
57
- //});
58
- done();
59
- });
60
- });
61
- describe('ftcPullBlockingFtcpullPost', function() {
62
- it('should call ftcPullBlockingFtcpullPost successfully', function(done) {
63
- //uncomment below and update the code to test ftcPullBlockingFtcpullPost
64
- //instance.ftcPullBlockingFtcpullPost(function(error) {
65
- // if (error) throw error;
66
- //expect().to.be();
67
- //});
68
- done();
69
- });
70
- });
71
- describe('fullReportBlockingFullreportGet', function() {
72
- it('should call fullReportBlockingFullreportGet successfully', function(done) {
73
- //uncomment below and update the code to test fullReportBlockingFullreportGet
74
- //instance.fullReportBlockingFullreportGet(function(error) {
75
- // if (error) throw error;
76
- //expect().to.be();
77
- //});
78
- done();
79
- });
80
- });
81
- describe('fullReportBlockingFullreportPost', function() {
82
- it('should call fullReportBlockingFullreportPost successfully', function(done) {
83
- //uncomment below and update the code to test fullReportBlockingFullreportPost
84
- //instance.fullReportBlockingFullreportPost(function(error) {
85
- // if (error) throw error;
86
- //expect().to.be();
87
- //});
88
- done();
89
- });
90
- });
91
- describe('fullReportHeadBlockingFullreportHead', function() {
92
- it('should call fullReportHeadBlockingFullreportHead successfully', function(done) {
93
- //uncomment below and update the code to test fullReportHeadBlockingFullreportHead
94
- //instance.fullReportHeadBlockingFullreportHead(function(error) {
95
- // if (error) throw error;
96
- //expect().to.be();
97
- //});
98
- done();
99
- });
100
- });
101
- });
102
-
103
- }));
@@ -1,83 +0,0 @@
1
- /**
2
- * FastAPI
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: 0.1.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- *
12
- */
13
-
14
- (function(root, factory) {
15
- if (typeof define === 'function' && define.amd) {
16
- // AMD.
17
- define(['expect.js', process.cwd()+'/src/index'], factory);
18
- } else if (typeof module === 'object' && module.exports) {
19
- // CommonJS-like environments that support module.exports, like Node.
20
- factory(require('expect.js'), require(process.cwd()+'/src/index'));
21
- } else {
22
- // Browser globals (root is window)
23
- factory(root.expect, root.FastApi);
24
- }
25
- }(this, function(expect, FastApi) {
26
- 'use strict';
27
-
28
- var instance;
29
-
30
- beforeEach(function() {
31
- instance = new FastApi.CallsApi();
32
- });
33
-
34
- var getProperty = function(object, getter, property) {
35
- // Use getter method if present; otherwise, get the property directly.
36
- if (typeof object[getter] === 'function')
37
- return object[getter]();
38
- else
39
- return object[property];
40
- }
41
-
42
- var setProperty = function(object, setter, property, value) {
43
- // Use setter method if present; otherwise, set the property directly.
44
- if (typeof object[setter] === 'function')
45
- object[setter](value);
46
- else
47
- object[property] = value;
48
- }
49
-
50
- describe('CallsApi', function() {
51
- describe('cancelCallCancelCallCallIdPost', function() {
52
- it('should call cancelCallCancelCallCallIdPost successfully', function(done) {
53
- //uncomment below and update the code to test cancelCallCancelCallCallIdPost
54
- //instance.cancelCallCancelCallCallIdPost(function(error) {
55
- // if (error) throw error;
56
- //expect().to.be();
57
- //});
58
- done();
59
- });
60
- });
61
- describe('joinCallJoinCallCallIdPost', function() {
62
- it('should call joinCallJoinCallCallIdPost successfully', function(done) {
63
- //uncomment below and update the code to test joinCallJoinCallCallIdPost
64
- //instance.joinCallJoinCallCallIdPost(function(error) {
65
- // if (error) throw error;
66
- //expect().to.be();
67
- //});
68
- done();
69
- });
70
- });
71
- describe('startCallStartCallPost', function() {
72
- it('should call startCallStartCallPost successfully', function(done) {
73
- //uncomment below and update the code to test startCallStartCallPost
74
- //instance.startCallStartCallPost(function(error) {
75
- // if (error) throw error;
76
- //expect().to.be();
77
- //});
78
- done();
79
- });
80
- });
81
- });
82
-
83
- }));
@@ -1,73 +0,0 @@
1
- /**
2
- * FastAPI
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: 0.1.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- *
12
- */
13
-
14
- (function(root, factory) {
15
- if (typeof define === 'function' && define.amd) {
16
- // AMD.
17
- define(['expect.js', process.cwd()+'/src/index'], factory);
18
- } else if (typeof module === 'object' && module.exports) {
19
- // CommonJS-like environments that support module.exports, like Node.
20
- factory(require('expect.js'), require(process.cwd()+'/src/index'));
21
- } else {
22
- // Browser globals (root is window)
23
- factory(root.expect, root.FastApi);
24
- }
25
- }(this, function(expect, FastApi) {
26
- 'use strict';
27
-
28
- var instance;
29
-
30
- beforeEach(function() {
31
- instance = new FastApi.DefaultApi();
32
- });
33
-
34
- var getProperty = function(object, getter, property) {
35
- // Use getter method if present; otherwise, get the property directly.
36
- if (typeof object[getter] === 'function')
37
- return object[getter]();
38
- else
39
- return object[property];
40
- }
41
-
42
- var setProperty = function(object, setter, property, value) {
43
- // Use setter method if present; otherwise, set the property directly.
44
- if (typeof object[setter] === 'function')
45
- object[setter](value);
46
- else
47
- object[property] = value;
48
- }
49
-
50
- describe('DefaultApi', function() {
51
- describe('rootGet', function() {
52
- it('should call rootGet successfully', function(done) {
53
- //uncomment below and update the code to test rootGet
54
- //instance.rootGet(function(error) {
55
- // if (error) throw error;
56
- //expect().to.be();
57
- //});
58
- done();
59
- });
60
- });
61
- describe('rootHealthGet', function() {
62
- it('should call rootHealthGet successfully', function(done) {
63
- //uncomment below and update the code to test rootHealthGet
64
- //instance.rootHealthGet(function(error) {
65
- // if (error) throw error;
66
- //expect().to.be();
67
- //});
68
- done();
69
- });
70
- });
71
- });
72
-
73
- }));