@schematichq/schematic-typescript-node 1.1.1 → 1.1.2

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 (46) hide show
  1. package/api/resources/accesstokens/client/Client.js +1 -1
  2. package/api/resources/accounts/client/Client.js +14 -14
  3. package/api/resources/billing/client/Client.js +8 -8
  4. package/api/resources/companies/client/Client.js +32 -32
  5. package/api/resources/components/client/Client.d.ts +0 -1
  6. package/api/resources/components/client/Client.js +7 -8
  7. package/api/resources/components/client/requests/CreateComponentRequestBody.d.ts +1 -2
  8. package/api/resources/components/client/requests/UpdateComponentRequestBody.d.ts +1 -1
  9. package/api/resources/crm/client/Client.js +5 -5
  10. package/api/resources/entitlements/client/Client.js +19 -19
  11. package/api/resources/events/client/Client.js +8 -8
  12. package/api/resources/features/client/Client.js +19 -19
  13. package/api/resources/plans/client/Client.js +10 -10
  14. package/api/resources/webhooks/client/Client.js +9 -9
  15. package/dist/api/resources/accesstokens/client/Client.js +1 -1
  16. package/dist/api/resources/accounts/client/Client.js +14 -14
  17. package/dist/api/resources/billing/client/Client.js +8 -8
  18. package/dist/api/resources/companies/client/Client.js +32 -32
  19. package/dist/api/resources/components/client/Client.d.ts +0 -1
  20. package/dist/api/resources/components/client/Client.js +7 -8
  21. package/dist/api/resources/components/client/requests/CreateComponentRequestBody.d.ts +1 -2
  22. package/dist/api/resources/components/client/requests/UpdateComponentRequestBody.d.ts +1 -1
  23. package/dist/api/resources/crm/client/Client.js +5 -5
  24. package/dist/api/resources/entitlements/client/Client.js +19 -19
  25. package/dist/api/resources/events/client/Client.js +8 -8
  26. package/dist/api/resources/features/client/Client.js +19 -19
  27. package/dist/api/resources/plans/client/Client.js +10 -10
  28. package/dist/api/resources/webhooks/client/Client.js +9 -9
  29. package/dist/serialization/resources/components/client/requests/CreateComponentRequestBody.d.ts +1 -1
  30. package/dist/serialization/resources/components/client/requests/CreateComponentRequestBody.js +1 -1
  31. package/dist/serialization/resources/components/client/requests/UpdateComponentRequestBody.d.ts +1 -1
  32. package/dist/serialization/resources/components/client/requests/UpdateComponentRequestBody.js +1 -1
  33. package/dist/wrapper.js +1 -4
  34. package/package.json +10 -13
  35. package/reference.md +0 -1
  36. package/serialization/resources/components/client/requests/CreateComponentRequestBody.d.ts +1 -1
  37. package/serialization/resources/components/client/requests/CreateComponentRequestBody.js +1 -1
  38. package/serialization/resources/components/client/requests/UpdateComponentRequestBody.d.ts +1 -1
  39. package/serialization/resources/components/client/requests/UpdateComponentRequestBody.js +1 -1
  40. package/wrapper.js +1 -4
  41. package/.husky/pre-commit +0 -1
  42. package/dist/version.d.ts +0 -1
  43. package/dist/version.js +0 -4
  44. package/generate-version.js +0 -6
  45. package/version.d.ts +0 -1
  46. package/version.js +0 -4
@@ -89,7 +89,7 @@ class Webhooks {
89
89
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
90
90
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "webhook-events"),
91
91
  method: "GET",
92
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
92
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
93
93
  contentType: "application/json",
94
94
  queryParameters: _queryParams,
95
95
  requestType: "json",
@@ -180,7 +180,7 @@ class Webhooks {
180
180
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
181
181
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `webhook-events/${encodeURIComponent(webhookEventId)}`),
182
182
  method: "GET",
183
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
183
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
184
184
  contentType: "application/json",
185
185
  requestType: "json",
186
186
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -292,7 +292,7 @@ class Webhooks {
292
292
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
293
293
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "webhook-events/count"),
294
294
  method: "GET",
295
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
295
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
296
296
  contentType: "application/json",
297
297
  queryParameters: _queryParams,
298
298
  requestType: "json",
@@ -394,7 +394,7 @@ class Webhooks {
394
394
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
395
395
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "webhooks"),
396
396
  method: "GET",
397
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
397
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
398
398
  contentType: "application/json",
399
399
  queryParameters: _queryParams,
400
400
  requestType: "json",
@@ -489,7 +489,7 @@ class Webhooks {
489
489
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
490
490
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "webhooks"),
491
491
  method: "POST",
492
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
492
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
493
493
  contentType: "application/json",
494
494
  requestType: "json",
495
495
  body: serializers.CreateWebhookRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -580,7 +580,7 @@ class Webhooks {
580
580
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
581
581
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `webhooks/${encodeURIComponent(webhookId)}`),
582
582
  method: "GET",
583
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
583
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
584
584
  contentType: "application/json",
585
585
  requestType: "json",
586
586
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -672,7 +672,7 @@ class Webhooks {
672
672
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
673
673
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `webhooks/${encodeURIComponent(webhookId)}`),
674
674
  method: "PUT",
675
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
675
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
676
676
  contentType: "application/json",
677
677
  requestType: "json",
678
678
  body: serializers.UpdateWebhookRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -771,7 +771,7 @@ class Webhooks {
771
771
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
772
772
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `webhooks/${encodeURIComponent(webhookId)}`),
773
773
  method: "DELETE",
774
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
774
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
775
775
  contentType: "application/json",
776
776
  requestType: "json",
777
777
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -872,7 +872,7 @@ class Webhooks {
872
872
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
873
873
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "webhooks/count"),
874
874
  method: "GET",
875
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
875
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
876
876
  contentType: "application/json",
877
877
  queryParameters: _queryParams,
878
878
  requestType: "json",
@@ -8,7 +8,7 @@ import { CreateComponentRequestBodyEntityType } from "../../types/CreateComponen
8
8
  export declare const CreateComponentRequestBody: core.serialization.Schema<serializers.CreateComponentRequestBody.Raw, Schematic.CreateComponentRequestBody>;
9
9
  export declare namespace CreateComponentRequestBody {
10
10
  interface Raw {
11
- ast: number[];
11
+ ast?: Record<string, number> | null;
12
12
  entity_type: CreateComponentRequestBodyEntityType.Raw;
13
13
  name: string;
14
14
  }
@@ -30,7 +30,7 @@ exports.CreateComponentRequestBody = void 0;
30
30
  const core = __importStar(require("../../../../../core"));
31
31
  const CreateComponentRequestBodyEntityType_1 = require("../../types/CreateComponentRequestBodyEntityType");
32
32
  exports.CreateComponentRequestBody = core.serialization.object({
33
- ast: core.serialization.list(core.serialization.number()),
33
+ ast: core.serialization.record(core.serialization.string(), core.serialization.number()).optional(),
34
34
  entityType: core.serialization.property("entity_type", CreateComponentRequestBodyEntityType_1.CreateComponentRequestBodyEntityType),
35
35
  name: core.serialization.string(),
36
36
  });
@@ -9,7 +9,7 @@ import { UpdateComponentRequestBodyState } from "../../types/UpdateComponentRequ
9
9
  export declare const UpdateComponentRequestBody: core.serialization.Schema<serializers.UpdateComponentRequestBody.Raw, Schematic.UpdateComponentRequestBody>;
10
10
  export declare namespace UpdateComponentRequestBody {
11
11
  interface Raw {
12
- ast?: number[] | null;
12
+ ast?: Record<string, number> | null;
13
13
  entity_type?: UpdateComponentRequestBodyEntityType.Raw | null;
14
14
  name?: string | null;
15
15
  state?: UpdateComponentRequestBodyState.Raw | null;
@@ -31,7 +31,7 @@ const core = __importStar(require("../../../../../core"));
31
31
  const UpdateComponentRequestBodyEntityType_1 = require("../../types/UpdateComponentRequestBodyEntityType");
32
32
  const UpdateComponentRequestBodyState_1 = require("../../types/UpdateComponentRequestBodyState");
33
33
  exports.UpdateComponentRequestBody = core.serialization.object({
34
- ast: core.serialization.list(core.serialization.number()).optional(),
34
+ ast: core.serialization.record(core.serialization.string(), core.serialization.number()).optional(),
35
35
  entityType: core.serialization.property("entity_type", UpdateComponentRequestBodyEntityType_1.UpdateComponentRequestBodyEntityType.optional()),
36
36
  name: core.serialization.string().optional(),
37
37
  state: UpdateComponentRequestBodyState_1.UpdateComponentRequestBodyState.optional(),
package/dist/wrapper.js CHANGED
@@ -15,14 +15,11 @@ const cache_1 = require("./cache");
15
15
  const logger_1 = require("./logger");
16
16
  const events_1 = require("./events");
17
17
  const custom_1 = require("./core/fetcher/custom");
18
- const version_1 = require("./version");
19
18
  class SchematicClient extends Client_1.SchematicClient {
20
19
  constructor(opts) {
21
20
  var _a, _b;
22
21
  const { apiKey = "", offline = false } = opts !== null && opts !== void 0 ? opts : {};
23
- const headers = {
24
- "User-Agent": `schematic-typescript-node@${version_1.version}`,
25
- };
22
+ const headers = {};
26
23
  if (opts === null || opts === void 0 ? void 0 : opts.environmentId) {
27
24
  headers["X-Schematic-Environment-Id"] = opts.environmentId;
28
25
  }
package/package.json CHANGED
@@ -1,36 +1,33 @@
1
1
  {
2
2
  "name": "@schematichq/schematic-typescript-node",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "private": false,
5
5
  "repository": "https://github.com/schematichq/schematic-node",
6
6
  "main": "./index.js",
7
7
  "types": "./index.d.ts",
8
8
  "scripts": {
9
- "build": "tsc",
10
9
  "format": "prettier . --write --ignore-unknown",
10
+ "build": "tsc",
11
11
  "prepack": "cp -rv dist/. .",
12
- "prepare": "husky",
13
- "test": "jest",
14
- "ts-version": "node generate-version.js && git add src/version.ts"
12
+ "test": "jest"
15
13
  },
16
14
  "dependencies": {
15
+ "url-join": "4.0.1",
17
16
  "form-data": "^4.0.0",
18
17
  "formdata-node": "^6.0.3",
19
18
  "node-fetch": "2.7.0",
20
- "qs": "6.11.2",
21
- "url-join": "4.0.1"
19
+ "qs": "6.11.2"
22
20
  },
23
21
  "devDependencies": {
24
- "@types/jest": "29.5.5",
25
- "@types/node": "17.0.33",
26
- "@types/node-fetch": "2.6.9",
27
- "@types/qs": "6.9.8",
28
22
  "@types/url-join": "4.0.1",
29
- "husky": "^9.1.4",
23
+ "@types/qs": "6.9.8",
24
+ "@types/node-fetch": "2.6.9",
30
25
  "jest": "29.7.0",
26
+ "@types/jest": "29.5.5",
27
+ "ts-jest": "29.1.1",
31
28
  "jest-environment-jsdom": "29.7.0",
29
+ "@types/node": "17.0.33",
32
30
  "prettier": "2.7.1",
33
- "ts-jest": "29.1.1",
34
31
  "typescript": "4.6.4"
35
32
  },
36
33
  "browser": {
package/reference.md CHANGED
@@ -4813,7 +4813,6 @@ await client.components.listComponents();
4813
4813
 
4814
4814
  ```typescript
4815
4815
  await client.components.createComponent({
4816
- ast: [1],
4817
4816
  entityType: Schematic.CreateComponentRequestBodyEntityType.Entitlement,
4818
4817
  name: "name",
4819
4818
  });
@@ -8,7 +8,7 @@ import { CreateComponentRequestBodyEntityType } from "../../types/CreateComponen
8
8
  export declare const CreateComponentRequestBody: core.serialization.Schema<serializers.CreateComponentRequestBody.Raw, Schematic.CreateComponentRequestBody>;
9
9
  export declare namespace CreateComponentRequestBody {
10
10
  interface Raw {
11
- ast: number[];
11
+ ast?: Record<string, number> | null;
12
12
  entity_type: CreateComponentRequestBodyEntityType.Raw;
13
13
  name: string;
14
14
  }
@@ -30,7 +30,7 @@ exports.CreateComponentRequestBody = void 0;
30
30
  const core = __importStar(require("../../../../../core"));
31
31
  const CreateComponentRequestBodyEntityType_1 = require("../../types/CreateComponentRequestBodyEntityType");
32
32
  exports.CreateComponentRequestBody = core.serialization.object({
33
- ast: core.serialization.list(core.serialization.number()),
33
+ ast: core.serialization.record(core.serialization.string(), core.serialization.number()).optional(),
34
34
  entityType: core.serialization.property("entity_type", CreateComponentRequestBodyEntityType_1.CreateComponentRequestBodyEntityType),
35
35
  name: core.serialization.string(),
36
36
  });
@@ -9,7 +9,7 @@ import { UpdateComponentRequestBodyState } from "../../types/UpdateComponentRequ
9
9
  export declare const UpdateComponentRequestBody: core.serialization.Schema<serializers.UpdateComponentRequestBody.Raw, Schematic.UpdateComponentRequestBody>;
10
10
  export declare namespace UpdateComponentRequestBody {
11
11
  interface Raw {
12
- ast?: number[] | null;
12
+ ast?: Record<string, number> | null;
13
13
  entity_type?: UpdateComponentRequestBodyEntityType.Raw | null;
14
14
  name?: string | null;
15
15
  state?: UpdateComponentRequestBodyState.Raw | null;
@@ -31,7 +31,7 @@ const core = __importStar(require("../../../../../core"));
31
31
  const UpdateComponentRequestBodyEntityType_1 = require("../../types/UpdateComponentRequestBodyEntityType");
32
32
  const UpdateComponentRequestBodyState_1 = require("../../types/UpdateComponentRequestBodyState");
33
33
  exports.UpdateComponentRequestBody = core.serialization.object({
34
- ast: core.serialization.list(core.serialization.number()).optional(),
34
+ ast: core.serialization.record(core.serialization.string(), core.serialization.number()).optional(),
35
35
  entityType: core.serialization.property("entity_type", UpdateComponentRequestBodyEntityType_1.UpdateComponentRequestBodyEntityType.optional()),
36
36
  name: core.serialization.string().optional(),
37
37
  state: UpdateComponentRequestBodyState_1.UpdateComponentRequestBodyState.optional(),
package/wrapper.js CHANGED
@@ -15,14 +15,11 @@ const cache_1 = require("./cache");
15
15
  const logger_1 = require("./logger");
16
16
  const events_1 = require("./events");
17
17
  const custom_1 = require("./core/fetcher/custom");
18
- const version_1 = require("./version");
19
18
  class SchematicClient extends Client_1.SchematicClient {
20
19
  constructor(opts) {
21
20
  var _a, _b;
22
21
  const { apiKey = "", offline = false } = opts !== null && opts !== void 0 ? opts : {};
23
- const headers = {
24
- "User-Agent": `schematic-typescript-node@${version_1.version}`,
25
- };
22
+ const headers = {};
26
23
  if (opts === null || opts === void 0 ? void 0 : opts.environmentId) {
27
24
  headers["X-Schematic-Environment-Id"] = opts.environmentId;
28
25
  }
package/.husky/pre-commit DELETED
@@ -1 +0,0 @@
1
- yarn ts-version
package/dist/version.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const version = "1.1.1";
package/dist/version.js DELETED
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.version = void 0;
4
- exports.version = "1.1.1";
@@ -1,6 +0,0 @@
1
- const fs = require("fs");
2
- const packageJson = require("./package.json");
3
-
4
- const versionString = `export const version = "${packageJson.version}";\n`;
5
-
6
- fs.writeFileSync("./src/version.ts", versionString);
package/version.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const version = "1.1.1";
package/version.js DELETED
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.version = void 0;
4
- exports.version = "1.1.1";