@stepzen/sdk 0.34.0-experimental.c2191de → 0.34.0

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 (50) hide show
  1. package/LICENSE +1 -1
  2. package/lib/client-v2.js +1 -1
  3. package/lib/client.js +1 -1
  4. package/lib/commands/account.js +1 -1
  5. package/lib/commands/authenticate.js +1 -1
  6. package/lib/commands/deploy.js +1 -1
  7. package/lib/commands/getPublicAccount.js +1 -1
  8. package/lib/commands/list.js +1 -1
  9. package/lib/commands/upload.js +1 -1
  10. package/lib/commands-v2/account.js +1 -1
  11. package/lib/commands-v2/delete.js +1 -1
  12. package/lib/commands-v2/deploy.js +1 -1
  13. package/lib/commands-v2/getPublicAccount.js +1 -1
  14. package/lib/commands-v2/list.js +1 -1
  15. package/lib/index.js +1 -1
  16. package/lib/init-v2.js +1 -1
  17. package/lib/init.js +1 -1
  18. package/lib/shared/constants.js +1 -1
  19. package/lib/shared/graphql-client.js +1 -1
  20. package/lib/shared/payloads.js +1 -1
  21. package/lib/shared/request.js +1 -1
  22. package/lib/shared/rmtemp.js +1 -1
  23. package/lib/shared/transpiling.js +1 -1
  24. package/lib/shared/types.js +1 -1
  25. package/lib/shared/validation.js +1 -1
  26. package/package.json +7 -6
  27. package/src/client-v2.ts +1 -1
  28. package/src/client.ts +1 -1
  29. package/src/commands/account.ts +1 -1
  30. package/src/commands/authenticate.ts +1 -1
  31. package/src/commands/deploy.ts +1 -1
  32. package/src/commands/getPublicAccount.ts +1 -1
  33. package/src/commands/list.ts +1 -1
  34. package/src/commands/upload.ts +1 -1
  35. package/src/commands-v2/account.ts +1 -1
  36. package/src/commands-v2/delete.ts +1 -1
  37. package/src/commands-v2/deploy.ts +1 -1
  38. package/src/commands-v2/getPublicAccount.ts +1 -1
  39. package/src/commands-v2/list.ts +1 -1
  40. package/src/index.ts +1 -1
  41. package/src/init-v2.ts +1 -1
  42. package/src/init.ts +1 -1
  43. package/src/shared/constants.ts +1 -1
  44. package/src/shared/graphql-client.ts +1 -1
  45. package/src/shared/payloads.ts +1 -1
  46. package/src/shared/request.ts +1 -1
  47. package/src/shared/rmtemp.ts +1 -1
  48. package/src/shared/transpiling.ts +1 -1
  49. package/src/shared/types.ts +1 -1
  50. package/src/shared/validation.ts +1 -1
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright IBM Corp. 2020, 2023
3
+ Copyright IBM Corp. 2020, 2024
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/lib/client-v2.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.createSdkClient = exports.ensureValidCredentials = void 0;
5
5
  const account_1 = require("./commands-v2/account");
package/lib/client.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.createSdkClient = exports.validateCreateClientOptions = void 0;
5
5
  const tslib_1 = require("tslib");
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const debug = require("debug");
5
5
  const fetch_1 = require("@stepzen/fetch");
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const debug = require("debug");
5
5
  const fetch_1 = require("@stepzen/fetch");
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const debug = require("debug");
5
5
  const fetch_1 = require("@stepzen/fetch");
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const debug = require("debug");
5
5
  const fetch_1 = require("@stepzen/fetch");
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const debug = require("debug");
5
5
  const fetch_1 = require("@stepzen/fetch");
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const debug = require("debug");
5
5
  const path = require("path");
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const graphql_client_1 = require("../shared/graphql-client");
5
5
  exports.default = async ({ account, adminKey, deploymentType, sdkConfig, }) => {
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const debug = require("debug");
5
5
  const graphql_client_1 = require("../shared/graphql-client");
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const graphql_client_1 = require("../shared/graphql-client");
5
5
  exports.default = async ({ account, deploymentType, folderName, endpointName, public: _public, endpointType, schemaFiles, configuration, adminKey, sdkConfig, }) => {
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const graphql_client_1 = require("../shared/graphql-client");
5
5
  exports.default = async ({ token, deploymentType, sdkConfig, }) => {
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const graphql_client_1 = require("../shared/graphql-client");
5
5
  exports.default = async ({ account, deploymentType, adminKey, sdkConfig, }) => {
package/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.fetchGraphQLQuery = void 0;
5
5
  const tslib_1 = require("tslib");
package/lib/init-v2.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.initV2 = void 0;
5
5
  const account_1 = require("./commands-v2/account");
package/lib/init.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.init = void 0;
5
5
  const authenticate_1 = require("./commands/authenticate");
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.ZENCTL2_URL = exports.ADMIN_VERIFY_URL = exports.ADMIN_UPLOAD_URL = exports.ADMIN_LIST_URL = exports.ADMIN_DEPLOY_URL = exports.ADMIN_ACCOUNT_URL = void 0;
5
5
  exports.ADMIN_ACCOUNT_URL = '/cli/admin/account';
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.fetchPublicAccountGraphQLQuery = exports.fetchZenCtlGraphQLQuery = exports.fetchGraphQLQuery = void 0;
5
5
  const debug = require("debug");
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.generateConfigurationPayload = exports.generateSchemaFilesPayload = exports.generateZipPayload = exports.generateYamlPayload = void 0;
5
5
  // This file contains helpers that zip a file or directory
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.getRequestHeaders = exports.getUserAgent = void 0;
5
5
  const os = require("os");
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.rmtemp = void 0;
5
5
  const fs = require("fs");
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.transpileConfigurationset = void 0;
5
5
  const dotenv = require("dotenv");
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  //# sourceMappingURL=types.js.map
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.validateSchema = exports.validateConfigurationset = void 0;
5
5
  const debug = require("debug");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stepzen/sdk",
3
- "version": "0.34.0-experimental.c2191de",
3
+ "version": "0.34.0",
4
4
  "license": "MIT",
5
5
  "author": "Darren Waddell <darren@stepzen.com>",
6
6
  "homepage": "https://stepzen.com",
@@ -22,20 +22,21 @@
22
22
  "posttest": "prettier . --check"
23
23
  },
24
24
  "dependencies": {
25
- "@stepzen/fetch": "0.34.0-experimental.c2191de",
26
- "@stepzen/transpiler": "0.34.0-experimental.c2191de",
25
+ "@stepzen/fetch": "0.34.0",
26
+ "@stepzen/transpiler": "0.34.0",
27
27
  "archiver": "^5.3.0",
28
28
  "debug": "^4.3.4",
29
29
  "dotenv": "^16.0.3",
30
30
  "form-data": "^4.0.0",
31
31
  "fs-extra": "^9.1.0",
32
32
  "glob": "^7.2.3",
33
- "graphql": "^16.6.0",
33
+ "graphql": "^16.8.1",
34
34
  "is-wsl": "^2.2.0",
35
35
  "yaml": "^2.2.2"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/archiver": "^5.3.1",
39
+ "@types/chai": "^4.3.10",
39
40
  "@types/debug": "^4.1.7",
40
41
  "@types/fs-extra": "^9.0.13",
41
42
  "@types/glob": "^7.2.0",
@@ -43,7 +44,7 @@
43
44
  "@types/mocha": "^10.0.1",
44
45
  "@types/node": "^14.18.36",
45
46
  "@types/node-fetch": "^2.6.2",
46
- "chai": "^4.3.4",
47
+ "chai": "^4.3.10",
47
48
  "fancy-test": "^1.4.10",
48
49
  "license-checker": "^25.0.1",
49
50
  "mocha": "^10.2.0",
@@ -51,5 +52,5 @@
51
52
  "prettier": "^2.8.3",
52
53
  "ts-node": "^10.8.2"
53
54
  },
54
- "gitHead": "c2191ded657df198b41cf06ad91a4dc07f89d98f"
55
+ "gitHead": "4f9364de289c13203f73ffe90e45b7807bd56fc4"
55
56
  }
package/src/client-v2.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import accountCmd from './commands-v2/account'
4
4
  import deleteCmd from './commands-v2/delete'
package/src/client.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import accountCommand from './commands/account'
4
4
  import deploy from './commands/deploy'
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import * as debug from 'debug'
4
4
  import fetch from '@stepzen/fetch'
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import * as debug from 'debug'
4
4
  import fetch from '@stepzen/fetch'
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import * as debug from 'debug'
4
4
  import fetch from '@stepzen/fetch'
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import * as debug from 'debug'
4
4
  import fetch from '@stepzen/fetch'
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import * as debug from 'debug'
4
4
  import fetch from '@stepzen/fetch'
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import * as debug from 'debug'
4
4
  import * as path from 'path'
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import {
4
4
  SDKConfigurationV2,
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import * as debug from 'debug'
4
4
  import {
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import {
4
4
  Configuration,
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import {
4
4
  SDKConfigurationV2,
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import type {
4
4
  SDKConfigurationV2,
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import * as path from 'path'
4
4
  import {init, SDK} from './init'
package/src/init-v2.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import accountCommand from './commands-v2/account'
4
4
  import {createSdkClient} from './client-v2'
package/src/init.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import authenticate from './commands/authenticate'
4
4
  import {createSdkClient} from './client'
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  export const ADMIN_ACCOUNT_URL = '/cli/admin/account'
4
4
  export const ADMIN_DEPLOY_URL = '/cli/admin/deploy'
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import * as debug from 'debug'
4
4
  import fetch from '@stepzen/fetch'
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  // This file contains helpers that zip a file or directory
4
4
 
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import * as os from 'os'
4
4
  import * as isWsl from 'is-wsl'
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import * as fs from 'fs'
4
4
  import * as path from 'path'
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import * as dotenv from 'dotenv'
4
4
  import * as debug from 'debug'
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  export interface StepZenAccount {
4
4
  account: string
@@ -1,4 +1,4 @@
1
- // Copyright IBM Corp. 2020, 2023
1
+ // Copyright IBM Corp. 2020, 2024
2
2
 
3
3
  import * as debug from 'debug'
4
4
  import * as fs from 'fs'