@schematichq/schematic-typescript-node 1.1.0 → 1.1.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 (94) hide show
  1. package/README.md +19 -11
  2. package/api/resources/accesstokens/client/Client.js +1 -1
  3. package/api/resources/accounts/client/Client.js +14 -14
  4. package/api/resources/billing/client/Client.js +8 -8
  5. package/api/resources/companies/client/Client.js +32 -32
  6. package/api/resources/components/client/Client.js +7 -7
  7. package/api/resources/crm/client/Client.js +5 -5
  8. package/api/resources/entitlements/client/Client.js +19 -19
  9. package/api/resources/events/client/Client.js +8 -8
  10. package/api/resources/features/client/Client.js +19 -19
  11. package/api/resources/plans/client/Client.js +18 -12
  12. package/api/resources/plans/client/requests/CountPlansRequest.d.ts +5 -0
  13. package/api/resources/plans/client/requests/ListPlansRequest.d.ts +5 -0
  14. package/api/resources/plans/types/CountPlansParams.d.ts +3 -0
  15. package/api/resources/plans/types/CountPlansRequestPlanType.d.ts +11 -0
  16. package/api/resources/plans/types/CountPlansRequestPlanType.js +10 -0
  17. package/api/resources/plans/types/CountPlansResponseParamsPlanType.d.ts +11 -0
  18. package/api/resources/plans/types/CountPlansResponseParamsPlanType.js +10 -0
  19. package/api/resources/plans/types/ListPlansParams.d.ts +3 -0
  20. package/api/resources/plans/types/ListPlansRequestPlanType.d.ts +11 -0
  21. package/api/resources/plans/types/ListPlansRequestPlanType.js +10 -0
  22. package/api/resources/plans/types/ListPlansResponseParamsPlanType.d.ts +11 -0
  23. package/api/resources/plans/types/ListPlansResponseParamsPlanType.js +10 -0
  24. package/api/resources/plans/types/index.d.ts +4 -0
  25. package/api/resources/plans/types/index.js +4 -0
  26. package/api/resources/webhooks/client/Client.js +9 -9
  27. package/api/types/ComponentResponseData.d.ts +1 -1
  28. package/dist/api/resources/accesstokens/client/Client.js +1 -1
  29. package/dist/api/resources/accounts/client/Client.js +14 -14
  30. package/dist/api/resources/billing/client/Client.js +8 -8
  31. package/dist/api/resources/companies/client/Client.js +32 -32
  32. package/dist/api/resources/components/client/Client.js +7 -7
  33. package/dist/api/resources/crm/client/Client.js +5 -5
  34. package/dist/api/resources/entitlements/client/Client.js +19 -19
  35. package/dist/api/resources/events/client/Client.js +8 -8
  36. package/dist/api/resources/features/client/Client.js +19 -19
  37. package/dist/api/resources/plans/client/Client.js +18 -12
  38. package/dist/api/resources/plans/client/requests/CountPlansRequest.d.ts +5 -0
  39. package/dist/api/resources/plans/client/requests/ListPlansRequest.d.ts +5 -0
  40. package/dist/api/resources/plans/types/CountPlansParams.d.ts +3 -0
  41. package/dist/api/resources/plans/types/CountPlansRequestPlanType.d.ts +11 -0
  42. package/dist/api/resources/plans/types/CountPlansRequestPlanType.js +10 -0
  43. package/dist/api/resources/plans/types/CountPlansResponseParamsPlanType.d.ts +11 -0
  44. package/dist/api/resources/plans/types/CountPlansResponseParamsPlanType.js +10 -0
  45. package/dist/api/resources/plans/types/ListPlansParams.d.ts +3 -0
  46. package/dist/api/resources/plans/types/ListPlansRequestPlanType.d.ts +11 -0
  47. package/dist/api/resources/plans/types/ListPlansRequestPlanType.js +10 -0
  48. package/dist/api/resources/plans/types/ListPlansResponseParamsPlanType.d.ts +11 -0
  49. package/dist/api/resources/plans/types/ListPlansResponseParamsPlanType.js +10 -0
  50. package/dist/api/resources/plans/types/index.d.ts +4 -0
  51. package/dist/api/resources/plans/types/index.js +4 -0
  52. package/dist/api/resources/webhooks/client/Client.js +9 -9
  53. package/dist/api/types/ComponentResponseData.d.ts +1 -1
  54. package/dist/serialization/resources/plans/types/CountPlansParams.d.ts +2 -0
  55. package/dist/serialization/resources/plans/types/CountPlansParams.js +2 -0
  56. package/dist/serialization/resources/plans/types/CountPlansRequestPlanType.d.ts +10 -0
  57. package/dist/serialization/resources/plans/types/CountPlansRequestPlanType.js +31 -0
  58. package/dist/serialization/resources/plans/types/CountPlansResponseParamsPlanType.d.ts +10 -0
  59. package/dist/serialization/resources/plans/types/CountPlansResponseParamsPlanType.js +31 -0
  60. package/dist/serialization/resources/plans/types/ListPlansParams.d.ts +2 -0
  61. package/dist/serialization/resources/plans/types/ListPlansParams.js +2 -0
  62. package/dist/serialization/resources/plans/types/ListPlansRequestPlanType.d.ts +10 -0
  63. package/dist/serialization/resources/plans/types/ListPlansRequestPlanType.js +31 -0
  64. package/dist/serialization/resources/plans/types/ListPlansResponseParamsPlanType.d.ts +10 -0
  65. package/dist/serialization/resources/plans/types/ListPlansResponseParamsPlanType.js +31 -0
  66. package/dist/serialization/resources/plans/types/index.d.ts +4 -0
  67. package/dist/serialization/resources/plans/types/index.js +4 -0
  68. package/dist/serialization/types/ComponentResponseData.d.ts +1 -1
  69. package/dist/serialization/types/ComponentResponseData.js +1 -1
  70. package/dist/version.d.ts +1 -1
  71. package/dist/version.js +1 -1
  72. package/dist/wrapper.d.ts +2 -1
  73. package/dist/wrapper.js +2 -2
  74. package/package.json +1 -1
  75. package/serialization/resources/plans/types/CountPlansParams.d.ts +2 -0
  76. package/serialization/resources/plans/types/CountPlansParams.js +2 -0
  77. package/serialization/resources/plans/types/CountPlansRequestPlanType.d.ts +10 -0
  78. package/serialization/resources/plans/types/CountPlansRequestPlanType.js +31 -0
  79. package/serialization/resources/plans/types/CountPlansResponseParamsPlanType.d.ts +10 -0
  80. package/serialization/resources/plans/types/CountPlansResponseParamsPlanType.js +31 -0
  81. package/serialization/resources/plans/types/ListPlansParams.d.ts +2 -0
  82. package/serialization/resources/plans/types/ListPlansParams.js +2 -0
  83. package/serialization/resources/plans/types/ListPlansRequestPlanType.d.ts +10 -0
  84. package/serialization/resources/plans/types/ListPlansRequestPlanType.js +31 -0
  85. package/serialization/resources/plans/types/ListPlansResponseParamsPlanType.d.ts +10 -0
  86. package/serialization/resources/plans/types/ListPlansResponseParamsPlanType.js +31 -0
  87. package/serialization/resources/plans/types/index.d.ts +4 -0
  88. package/serialization/resources/plans/types/index.js +4 -0
  89. package/serialization/types/ComponentResponseData.d.ts +1 -1
  90. package/serialization/types/ComponentResponseData.js +1 -1
  91. package/version.d.ts +1 -1
  92. package/version.js +1 -1
  93. package/wrapper.d.ts +2 -1
  94. package/wrapper.js +2 -2
package/dist/wrapper.js CHANGED
@@ -17,9 +17,9 @@ const events_1 = require("./events");
17
17
  const custom_1 = require("./core/fetcher/custom");
18
18
  const version_1 = require("./version");
19
19
  class SchematicClient extends Client_1.SchematicClient {
20
- constructor(apiKey, opts) {
20
+ constructor(opts) {
21
21
  var _a, _b;
22
- const { offline = false } = opts !== null && opts !== void 0 ? opts : {};
22
+ const { apiKey = "", offline = false } = opts !== null && opts !== void 0 ? opts : {};
23
23
  const headers = {
24
24
  "User-Agent": `schematic-typescript-node@${version_1.version}`,
25
25
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schematichq/schematic-typescript-node",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "private": false,
5
5
  "repository": "https://github.com/schematichq/schematic-node",
6
6
  "main": "./index.js",
@@ -4,6 +4,7 @@
4
4
  import * as serializers from "../../../index";
5
5
  import * as Schematic from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
+ import { CountPlansResponseParamsPlanType } from "./CountPlansResponseParamsPlanType";
7
8
  export declare const CountPlansParams: core.serialization.ObjectSchema<serializers.CountPlansParams.Raw, Schematic.CountPlansParams>;
8
9
  export declare namespace CountPlansParams {
9
10
  interface Raw {
@@ -11,6 +12,7 @@ export declare namespace CountPlansParams {
11
12
  ids?: string[] | null;
12
13
  limit?: number | null;
13
14
  offset?: number | null;
15
+ plan_type?: CountPlansResponseParamsPlanType.Raw | null;
14
16
  q?: string | null;
15
17
  without_entitlement_for?: string | null;
16
18
  }
@@ -28,11 +28,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.CountPlansParams = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
+ const CountPlansResponseParamsPlanType_1 = require("./CountPlansResponseParamsPlanType");
31
32
  exports.CountPlansParams = core.serialization.object({
32
33
  companyId: core.serialization.property("company_id", core.serialization.string().optional()),
33
34
  ids: core.serialization.list(core.serialization.string()).optional(),
34
35
  limit: core.serialization.number().optional(),
35
36
  offset: core.serialization.number().optional(),
37
+ planType: core.serialization.property("plan_type", CountPlansResponseParamsPlanType_1.CountPlansResponseParamsPlanType.optional()),
36
38
  q: core.serialization.string().optional(),
37
39
  withoutEntitlementFor: core.serialization.property("without_entitlement_for", core.serialization.string().optional()),
38
40
  });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Schematic from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const CountPlansRequestPlanType: core.serialization.Schema<serializers.CountPlansRequestPlanType.Raw, Schematic.CountPlansRequestPlanType>;
8
+ export declare namespace CountPlansRequestPlanType {
9
+ type Raw = "plan" | "add_on";
10
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.CountPlansRequestPlanType = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.CountPlansRequestPlanType = core.serialization.enum_(["plan", "add_on"]);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Schematic from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const CountPlansResponseParamsPlanType: core.serialization.Schema<serializers.CountPlansResponseParamsPlanType.Raw, Schematic.CountPlansResponseParamsPlanType>;
8
+ export declare namespace CountPlansResponseParamsPlanType {
9
+ type Raw = "plan" | "add_on";
10
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.CountPlansResponseParamsPlanType = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.CountPlansResponseParamsPlanType = core.serialization.enum_(["plan", "add_on"]);
@@ -4,6 +4,7 @@
4
4
  import * as serializers from "../../../index";
5
5
  import * as Schematic from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
+ import { ListPlansResponseParamsPlanType } from "./ListPlansResponseParamsPlanType";
7
8
  export declare const ListPlansParams: core.serialization.ObjectSchema<serializers.ListPlansParams.Raw, Schematic.ListPlansParams>;
8
9
  export declare namespace ListPlansParams {
9
10
  interface Raw {
@@ -11,6 +12,7 @@ export declare namespace ListPlansParams {
11
12
  ids?: string[] | null;
12
13
  limit?: number | null;
13
14
  offset?: number | null;
15
+ plan_type?: ListPlansResponseParamsPlanType.Raw | null;
14
16
  q?: string | null;
15
17
  without_entitlement_for?: string | null;
16
18
  }
@@ -28,11 +28,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ListPlansParams = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
+ const ListPlansResponseParamsPlanType_1 = require("./ListPlansResponseParamsPlanType");
31
32
  exports.ListPlansParams = core.serialization.object({
32
33
  companyId: core.serialization.property("company_id", core.serialization.string().optional()),
33
34
  ids: core.serialization.list(core.serialization.string()).optional(),
34
35
  limit: core.serialization.number().optional(),
35
36
  offset: core.serialization.number().optional(),
37
+ planType: core.serialization.property("plan_type", ListPlansResponseParamsPlanType_1.ListPlansResponseParamsPlanType.optional()),
36
38
  q: core.serialization.string().optional(),
37
39
  withoutEntitlementFor: core.serialization.property("without_entitlement_for", core.serialization.string().optional()),
38
40
  });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Schematic from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const ListPlansRequestPlanType: core.serialization.Schema<serializers.ListPlansRequestPlanType.Raw, Schematic.ListPlansRequestPlanType>;
8
+ export declare namespace ListPlansRequestPlanType {
9
+ type Raw = "plan" | "add_on";
10
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ListPlansRequestPlanType = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.ListPlansRequestPlanType = core.serialization.enum_(["plan", "add_on"]);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Schematic from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const ListPlansResponseParamsPlanType: core.serialization.Schema<serializers.ListPlansResponseParamsPlanType.Raw, Schematic.ListPlansResponseParamsPlanType>;
8
+ export declare namespace ListPlansResponseParamsPlanType {
9
+ type Raw = "plan" | "add_on";
10
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ListPlansResponseParamsPlanType = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.ListPlansResponseParamsPlanType = core.serialization.enum_(["plan", "add_on"]);
@@ -1,6 +1,8 @@
1
1
  export * from "./GetAudienceResponse";
2
2
  export * from "./UpdateAudienceResponse";
3
3
  export * from "./DeleteAudienceResponse";
4
+ export * from "./ListPlansRequestPlanType";
5
+ export * from "./ListPlansResponseParamsPlanType";
4
6
  export * from "./ListPlansParams";
5
7
  export * from "./ListPlansResponse";
6
8
  export * from "./CreatePlanRequestBodyPlanType";
@@ -9,5 +11,7 @@ export * from "./GetPlanResponse";
9
11
  export * from "./UpdatePlanResponse";
10
12
  export * from "./DeletePlanResponse";
11
13
  export * from "./UpsertBillingProductPlanResponse";
14
+ export * from "./CountPlansRequestPlanType";
15
+ export * from "./CountPlansResponseParamsPlanType";
12
16
  export * from "./CountPlansParams";
13
17
  export * from "./CountPlansResponse";
@@ -17,6 +17,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./GetAudienceResponse"), exports);
18
18
  __exportStar(require("./UpdateAudienceResponse"), exports);
19
19
  __exportStar(require("./DeleteAudienceResponse"), exports);
20
+ __exportStar(require("./ListPlansRequestPlanType"), exports);
21
+ __exportStar(require("./ListPlansResponseParamsPlanType"), exports);
20
22
  __exportStar(require("./ListPlansParams"), exports);
21
23
  __exportStar(require("./ListPlansResponse"), exports);
22
24
  __exportStar(require("./CreatePlanRequestBodyPlanType"), exports);
@@ -25,5 +27,7 @@ __exportStar(require("./GetPlanResponse"), exports);
25
27
  __exportStar(require("./UpdatePlanResponse"), exports);
26
28
  __exportStar(require("./DeletePlanResponse"), exports);
27
29
  __exportStar(require("./UpsertBillingProductPlanResponse"), exports);
30
+ __exportStar(require("./CountPlansRequestPlanType"), exports);
31
+ __exportStar(require("./CountPlansResponseParamsPlanType"), exports);
28
32
  __exportStar(require("./CountPlansParams"), exports);
29
33
  __exportStar(require("./CountPlansResponse"), exports);
@@ -7,7 +7,7 @@ import * as core from "../../core";
7
7
  export declare const ComponentResponseData: core.serialization.ObjectSchema<serializers.ComponentResponseData.Raw, Schematic.ComponentResponseData>;
8
8
  export declare namespace ComponentResponseData {
9
9
  interface Raw {
10
- ast: number[];
10
+ ast?: Record<string, number> | null;
11
11
  created_at: string;
12
12
  id: string;
13
13
  name: string;
@@ -29,7 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ComponentResponseData = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  exports.ComponentResponseData = core.serialization.object({
32
- ast: core.serialization.list(core.serialization.number()),
32
+ ast: core.serialization.record(core.serialization.string(), core.serialization.number()).optional(),
33
33
  createdAt: core.serialization.property("created_at", core.serialization.date()),
34
34
  id: core.serialization.string(),
35
35
  name: core.serialization.string(),
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "1.1.0";
1
+ export declare const version = "1.1.1";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
- exports.version = "1.1.0";
4
+ exports.version = "1.1.1";
package/wrapper.d.ts CHANGED
@@ -3,6 +3,7 @@ import { SchematicClient as BaseClient } from "./Client";
3
3
  import { CacheProvider } from "./cache";
4
4
  import { Logger } from "./logger";
5
5
  export interface SchematicOptions {
6
+ apiKey?: string;
6
7
  basePath?: string;
7
8
  cacheProviders?: {
8
9
  flagChecks?: CacheProvider<boolean>[];
@@ -22,7 +23,7 @@ export declare class SchematicClient extends BaseClient {
22
23
  private flagDefaults;
23
24
  private logger;
24
25
  private offline;
25
- constructor(apiKey: string, opts?: SchematicOptions);
26
+ constructor(opts?: SchematicOptions);
26
27
  checkFlag(evalCtx: api.CheckFlagRequestBody, key: string): Promise<boolean>;
27
28
  close(): Promise<void>;
28
29
  identify(body: api.EventBodyIdentify): Promise<void>;
package/wrapper.js CHANGED
@@ -17,9 +17,9 @@ const events_1 = require("./events");
17
17
  const custom_1 = require("./core/fetcher/custom");
18
18
  const version_1 = require("./version");
19
19
  class SchematicClient extends Client_1.SchematicClient {
20
- constructor(apiKey, opts) {
20
+ constructor(opts) {
21
21
  var _a, _b;
22
- const { offline = false } = opts !== null && opts !== void 0 ? opts : {};
22
+ const { apiKey = "", offline = false } = opts !== null && opts !== void 0 ? opts : {};
23
23
  const headers = {
24
24
  "User-Agent": `schematic-typescript-node@${version_1.version}`,
25
25
  };