@workos-inc/node 7.66.0 → 7.66.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.
|
@@ -78,7 +78,7 @@ class Organizations {
|
|
|
78
78
|
listOrganizationFeatureFlags(options) {
|
|
79
79
|
return __awaiter(this, void 0, void 0, function* () {
|
|
80
80
|
const { organizationId } = options, paginationOptions = __rest(options, ["organizationId"]);
|
|
81
|
-
return new pagination_1.AutoPaginatable(yield (0, fetch_and_deserialize_1.fetchAndDeserialize)(this.workos, `/organizations/${organizationId}/
|
|
81
|
+
return new pagination_1.AutoPaginatable(yield (0, fetch_and_deserialize_1.fetchAndDeserialize)(this.workos, `/organizations/${organizationId}/feature-flags`, feature_flag_serializer_1.deserializeFeatureFlag, paginationOptions), (params) => (0, fetch_and_deserialize_1.fetchAndDeserialize)(this.workos, `/organizations/${organizationId}/feature-flags`, feature_flag_serializer_1.deserializeFeatureFlag, params), paginationOptions);
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
84
|
}
|
|
@@ -362,7 +362,7 @@ describe('Organizations', () => {
|
|
|
362
362
|
const { data, object, listMetadata } = yield workos.organizations.listOrganizationFeatureFlags({
|
|
363
363
|
organizationId: 'org_01EHT88Z8J8795GZNQ4ZP1J81T',
|
|
364
364
|
});
|
|
365
|
-
expect((0, test_utils_1.fetchURL)()).toContain('/organizations/org_01EHT88Z8J8795GZNQ4ZP1J81T/
|
|
365
|
+
expect((0, test_utils_1.fetchURL)()).toContain('/organizations/org_01EHT88Z8J8795GZNQ4ZP1J81T/feature-flags');
|
|
366
366
|
expect(object).toEqual('list');
|
|
367
367
|
expect(listMetadata).toEqual({});
|
|
368
368
|
expect(data).toHaveLength(3);
|
|
@@ -407,7 +407,7 @@ describe('Organizations', () => {
|
|
|
407
407
|
before: 'flag_before_id',
|
|
408
408
|
order: 'desc',
|
|
409
409
|
});
|
|
410
|
-
expect((0, test_utils_1.fetchURL)()).toContain('/organizations/org_01EHT88Z8J8795GZNQ4ZP1J81T/
|
|
410
|
+
expect((0, test_utils_1.fetchURL)()).toContain('/organizations/org_01EHT88Z8J8795GZNQ4ZP1J81T/feature-flags');
|
|
411
411
|
expect(data).toHaveLength(3);
|
|
412
412
|
}));
|
|
413
413
|
});
|
|
@@ -422,7 +422,7 @@ describe('Organizations', () => {
|
|
|
422
422
|
after: 'flag_after_id',
|
|
423
423
|
order: 'desc',
|
|
424
424
|
});
|
|
425
|
-
expect((0, test_utils_1.fetchURL)()).toContain('/organizations/org_01EHT88Z8J8795GZNQ4ZP1J81T/
|
|
425
|
+
expect((0, test_utils_1.fetchURL)()).toContain('/organizations/org_01EHT88Z8J8795GZNQ4ZP1J81T/feature-flags');
|
|
426
426
|
expect(data).toHaveLength(3);
|
|
427
427
|
}));
|
|
428
428
|
});
|
|
@@ -437,7 +437,7 @@ describe('Organizations', () => {
|
|
|
437
437
|
limit: '10',
|
|
438
438
|
order: 'desc',
|
|
439
439
|
});
|
|
440
|
-
expect((0, test_utils_1.fetchURL)()).toContain('/organizations/org_01EHT88Z8J8795GZNQ4ZP1J81T/
|
|
440
|
+
expect((0, test_utils_1.fetchURL)()).toContain('/organizations/org_01EHT88Z8J8795GZNQ4ZP1J81T/feature-flags');
|
|
441
441
|
expect(data).toHaveLength(3);
|
|
442
442
|
}));
|
|
443
443
|
});
|
package/lib/workos.js
CHANGED
|
@@ -32,7 +32,7 @@ const actions_1 = require("./actions/actions");
|
|
|
32
32
|
const vault_1 = require("./vault/vault");
|
|
33
33
|
const conflict_exception_1 = require("./common/exceptions/conflict.exception");
|
|
34
34
|
const parse_error_1 = require("./common/exceptions/parse-error");
|
|
35
|
-
const VERSION = '7.66.
|
|
35
|
+
const VERSION = '7.66.1';
|
|
36
36
|
const DEFAULT_HOSTNAME = 'api.workos.com';
|
|
37
37
|
const HEADER_AUTHORIZATION = 'Authorization';
|
|
38
38
|
const HEADER_IDEMPOTENCY_KEY = 'Idempotency-Key';
|
package/package.json
CHANGED