@codiac.io/codiac-cli 1.2.133 → 1.2.135

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 (91) hide show
  1. package/README.md +3780 -3
  2. package/lib/cli-common/command-base.js +1 -1
  3. package/lib/cli-common/command-base.js.map +1 -1
  4. package/lib/k8s-command-base.d.ts +15 -25
  5. package/lib/k8s-command-base.js +20 -92
  6. package/lib/k8s-command-base.js.map +1 -1
  7. package/lib/relay/data/aws-regions.d.ts +6 -0
  8. package/lib/relay/data/aws-regions.js +32 -32
  9. package/lib/relay/data/aws-regions.js.map +1 -1
  10. package/lib/uilogic/cloud-resource-configurators/aws-k8s-versions.d.ts +11 -0
  11. package/lib/uilogic/cloud-resource-configurators/aws-k8s-versions.js +14 -13
  12. package/lib/uilogic/cloud-resource-configurators/aws-k8s-versions.js.map +1 -1
  13. package/lib/uilogic/cloud-resource-configurators/aws-node-types.d.ts +1 -33
  14. package/lib/uilogic/cloud-resource-configurators/aws-node-types.js +2 -3712
  15. package/lib/uilogic/cloud-resource-configurators/aws-node-types.js.map +1 -1
  16. package/lib/uilogic/enterprise-contextualizer.js +2 -0
  17. package/lib/uilogic/enterprise-contextualizer.js.map +1 -1
  18. package/oclif.manifest.json +8317 -1
  19. package/package.json +4 -3
  20. package/lib/api-clients/common/api-user-creds.d.ts +0 -7
  21. package/lib/api-clients/common/api-user-creds.js +0 -19
  22. package/lib/api-clients/common/api-user-creds.js.map +0 -1
  23. package/lib/api-clients/common/config-loader.d.ts +0 -6
  24. package/lib/api-clients/common/config-loader.js +0 -19
  25. package/lib/api-clients/common/config-loader.js.map +0 -1
  26. package/lib/api-clients/common/security/auth-constants.d.ts +0 -15
  27. package/lib/api-clients/common/security/auth-constants.js +0 -22
  28. package/lib/api-clients/common/security/auth-constants.js.map +0 -1
  29. package/lib/api-clients/common/security/i-auth-client.d.ts +0 -44
  30. package/lib/api-clients/common/security/i-auth-client.js +0 -3
  31. package/lib/api-clients/common/security/i-auth-client.js.map +0 -1
  32. package/lib/api-clients/common/security/rest-client-base-with-auth.d.ts +0 -84
  33. package/lib/api-clients/common/security/rest-client-base-with-auth.js +0 -361
  34. package/lib/api-clients/common/security/rest-client-base-with-auth.js.map +0 -1
  35. package/lib/api-clients/common/security/token-holder.d.ts +0 -13
  36. package/lib/api-clients/common/security/token-holder.js +0 -18
  37. package/lib/api-clients/common/security/token-holder.js.map +0 -1
  38. package/lib/api-clients/common/utils.d.ts +0 -23
  39. package/lib/api-clients/common/utils.js +0 -83
  40. package/lib/api-clients/common/utils.js.map +0 -1
  41. package/lib/api-clients/contracts/index.d.ts +0 -1
  42. package/lib/api-clients/contracts/index.js +0 -5
  43. package/lib/api-clients/contracts/index.js.map +0 -1
  44. package/lib/api-clients/gen/client-config.d.ts +0 -10
  45. package/lib/api-clients/gen/client-config.js +0 -29
  46. package/lib/api-clients/gen/client-config.js.map +0 -1
  47. package/lib/api-clients/gen/client.d.ts +0 -45
  48. package/lib/api-clients/gen/client.js +0 -331
  49. package/lib/api-clients/gen/client.js.map +0 -1
  50. package/lib/api-clients/gen/contracts.d.ts +0 -2529
  51. package/lib/api-clients/gen/contracts.js +0 -370
  52. package/lib/api-clients/gen/contracts.js.map +0 -1
  53. package/lib/api-clients/gen/endpoints.d.ts +0 -3
  54. package/lib/api-clients/gen/endpoints.js +0 -3150
  55. package/lib/api-clients/gen/endpoints.js.map +0 -1
  56. package/lib/api-clients/index.d.ts +0 -2
  57. package/lib/api-clients/index.js +0 -6
  58. package/lib/api-clients/index.js.map +0 -1
  59. package/lib/apis/codiac-api/common/security/rest-client-base-with-auth.d.ts +0 -84
  60. package/lib/apis/codiac-api/common/security/rest-client-base-with-auth.js +0 -361
  61. package/lib/apis/codiac-api/common/security/rest-client-base-with-auth.js.map +0 -1
  62. package/lib/apis/codiac-api/gen/endpoints.d.ts +0 -3
  63. package/lib/apis/codiac-api/gen/endpoints.js +0 -3150
  64. package/lib/apis/codiac-api/gen/endpoints.js.map +0 -1
  65. package/lib/apis/over-gen/temp-mods.d.ts +0 -33
  66. package/lib/apis/over-gen/temp-mods.js +0 -91
  67. package/lib/apis/over-gen/temp-mods.js.map +0 -1
  68. package/lib/uilogic/enterprise-contextualizer-machine-scope.d.ts +0 -69
  69. package/lib/uilogic/enterprise-contextualizer-machine-scope.js +0 -596
  70. package/lib/uilogic/enterprise-contextualizer-machine-scope.js.map +0 -1
  71. package/lib/uilogic/registry-configurator-factory.d.ts +0 -12
  72. package/lib/uilogic/registry-configurator-factory.js +0 -68
  73. package/lib/uilogic/registry-configurator-factory.js.map +0 -1
  74. package/lib/uilogic/registry-configurator.d.ts +0 -17
  75. package/lib/uilogic/registry-configurator.js +0 -145
  76. package/lib/uilogic/registry-configurator.js.map +0 -1
  77. package/lib/uilogic/registry-configurators/aws-registry-configurator.d.ts +0 -15
  78. package/lib/uilogic/registry-configurators/aws-registry-configurator.js +0 -67
  79. package/lib/uilogic/registry-configurators/aws-registry-configurator.js.map +0 -1
  80. package/lib/uilogic/registry-configurators/azure-registry-configurator.d.ts +0 -25
  81. package/lib/uilogic/registry-configurators/azure-registry-configurator.js +0 -72
  82. package/lib/uilogic/registry-configurators/azure-registry-configurator.js.map +0 -1
  83. package/lib/uilogic/registry-configurators/docker-hub-registry-configurator.d.ts +0 -18
  84. package/lib/uilogic/registry-configurators/docker-hub-registry-configurator.js +0 -55
  85. package/lib/uilogic/registry-configurators/docker-hub-registry-configurator.js.map +0 -1
  86. package/lib/uilogic/registry-configurators/helm-registry-configurator.d.ts +0 -16
  87. package/lib/uilogic/registry-configurators/helm-registry-configurator.js +0 -44
  88. package/lib/uilogic/registry-configurators/helm-registry-configurator.js.map +0 -1
  89. package/lib/uilogic/registry-configurators/unsupported-registry-configurator.d.ts +0 -17
  90. package/lib/uilogic/registry-configurators/unsupported-registry-configurator.js +0 -60
  91. package/lib/uilogic/registry-configurators/unsupported-registry-configurator.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"rest-client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;GACS,sBAAsB,CAuV3C;AAvVqB,wDAAsB"}
@@ -1,13 +0,0 @@
1
- import { TenantUser } from "@codiac.io/codiac-common/security";
2
- export declare class TokenHolder {
3
- user: TenantUser;
4
- token: string;
5
- expiration: Date | undefined;
6
- /**
7
- * @param user A user or principal (ie: tenantCode is optional)
8
- * @param token The JWT returned by the auth api. If there's a tenantCode,
9
- * then the token is a tenant-user token. Otherwise just a user token.
10
- * @param expiration in GMT
11
- */
12
- constructor(user: TenantUser, token: string, expiration: Date | undefined);
13
- }
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TokenHolder = void 0;
4
- class TokenHolder {
5
- /**
6
- * @param user A user or principal (ie: tenantCode is optional)
7
- * @param token The JWT returned by the auth api. If there's a tenantCode,
8
- * then the token is a tenant-user token. Otherwise just a user token.
9
- * @param expiration in GMT
10
- */
11
- constructor(user, token, expiration) {
12
- this.user = user;
13
- this.token = token;
14
- this.expiration = expiration;
15
- }
16
- }
17
- exports.TokenHolder = TokenHolder;
18
- //# sourceMappingURL=token-holder.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"token-holder.js","sourceRoot":"","sources":["../../../../src/api-clients/common/security/token-holder.ts"],"names":[],"mappings":";;;AAEA,MAAa,WAAW;IACtB;;;;;OAKG;IACH,YAAmB,IAAgB,EAAS,KAAa,EAAS,UAA0B;QAAzE,SAAI,GAAJ,IAAI,CAAY;QAAS,UAAK,GAAL,KAAK,CAAQ;QAAS,eAAU,GAAV,UAAU,CAAgB;IAE5F,CAAC;CACF;AAVD,kCAUC"}
@@ -1,23 +0,0 @@
1
- export declare class utils {
2
- /** Returns the instantiated object or array.
3
- * Returns undefined for both an empty or missing source file.
4
- * Uses JSON.parse and does not perform any explicit casting.
5
- * Throws encountered exceptions. Resolves tilde (~) path prefixes.
6
- * @param pathName Fully qualified path and filename of the json file.
7
- * @param allowComments (default: false) Flag to use a json comment parser to support comments in the json file.
8
- */
9
- static deserializeJsonFile<T>(pathName: string, allowComments?: boolean): T | undefined;
10
- /** Uses JSON.stringify() to write the given object to a file. Resolves tilde (~) path prefixes.
11
- * @param subject The object to serialize.
12
- * @param pathName Fully-qualified path and filename (eg "/users/JoeCool/.config/app-config.json").
13
- * @param allowComments (default: false) Flag to use a json comment parser to support comments in the json file.
14
- */
15
- static serializeJsonFile(subject: any, pathName: string, allowComments?: boolean): void;
16
- /** Replaces the leading tilde (~) in the given file path
17
- * with the absolute path to the os.homedir (eg: "/Users/JoeCool").
18
- * NOTE: Relative paths will slide through this function untouched:
19
- * this function does not necessarily return an absolute path! */
20
- static resolveHomeDir(pathName: string): string;
21
- /** */
22
- static smashMergeConfg<TSettings>(defaults: TSettings, configsInPriorityOrder?: Partial<TSettings>[]): TSettings;
23
- }
@@ -1,83 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.utils = void 0;
4
- const path = require("path");
5
- const fs = require("fs");
6
- const os = require("os");
7
- const commentJson = require("comment-json");
8
- const lodash_1 = require("lodash");
9
- // TODO: Promote this to a shared pkg
10
- class utils {
11
- /** Returns the instantiated object or array.
12
- * Returns undefined for both an empty or missing source file.
13
- * Uses JSON.parse and does not perform any explicit casting.
14
- * Throws encountered exceptions. Resolves tilde (~) path prefixes.
15
- * @param pathName Fully qualified path and filename of the json file.
16
- * @param allowComments (default: false) Flag to use a json comment parser to support comments in the json file.
17
- */
18
- static deserializeJsonFile(pathName, allowComments = false) {
19
- try {
20
- let targetPathName = this.resolveHomeDir(pathName);
21
- if (!path.isAbsolute(targetPathName)) {
22
- throw new Error(`Cannot deserialize: the pathName [${pathName}] is not a fully qualified path.`);
23
- }
24
- if (fs.existsSync(targetPathName)) {
25
- let json = fs.readFileSync(targetPathName, { encoding: 'utf-8' });
26
- if (allowComments) {
27
- let obj = commentJson.parse(json);
28
- return obj;
29
- }
30
- else {
31
- let obj = JSON.parse(json);
32
- return obj;
33
- }
34
- }
35
- else {
36
- return undefined;
37
- }
38
- }
39
- catch (err) {
40
- throw err;
41
- }
42
- }
43
- /** Uses JSON.stringify() to write the given object to a file. Resolves tilde (~) path prefixes.
44
- * @param subject The object to serialize.
45
- * @param pathName Fully-qualified path and filename (eg "/users/JoeCool/.config/app-config.json").
46
- * @param allowComments (default: false) Flag to use a json comment parser to support comments in the json file.
47
- */
48
- static serializeJsonFile(subject, pathName, allowComments = false) {
49
- let targetPathName = this.resolveHomeDir(pathName);
50
- if (!path.isAbsolute(targetPathName)) {
51
- throw new Error(`Cannot serialize: the pathName [${pathName}] is not a fully qaulified path`);
52
- }
53
- if (allowComments) {
54
- commentJson.stringify(subject, undefined, ' ');
55
- }
56
- else {
57
- fs.writeFileSync(targetPathName, JSON.stringify(subject, undefined, ' '));
58
- }
59
- }
60
- /** Replaces the leading tilde (~) in the given file path
61
- * with the absolute path to the os.homedir (eg: "/Users/JoeCool").
62
- * NOTE: Relative paths will slide through this function untouched:
63
- * this function does not necessarily return an absolute path! */
64
- static resolveHomeDir(pathName) {
65
- if (pathName.startsWith("~")) {
66
- return path.join(os.homedir(), pathName.slice(2));
67
- }
68
- else {
69
- return pathName;
70
- }
71
- }
72
- /** */
73
- static smashMergeConfg(defaults, configsInPriorityOrder) {
74
- if (!configsInPriorityOrder || configsInPriorityOrder.length == 0)
75
- return defaults;
76
- else {
77
- let ultimate = lodash_1.default.assignIn(defaults, ...configsInPriorityOrder.reverse());
78
- return ultimate;
79
- }
80
- }
81
- }
82
- exports.utils = utils;
83
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/api-clients/common/utils.ts"],"names":[],"mappings":";;;AAAA,6BAA4B;AAC5B,yBAAwB;AACxB,yBAAwB;AACxB,4CAA2C;AAC3C,mCAAuB;AAGvB,sCAAsC;AAEtC,MAAa,KAAK;IAEhB;;;;;;OAMG;IACI,MAAM,CAAC,mBAAmB,CAAI,QAAgB,EAAE,gBAAyB,KAAK;QACnF,I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AGD;;;qEAGiE;IAC1D,MAAM,CAAC,cAAc,CAAC,QAAgB;QAC3C,IAAI,QAAQ,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE;YAC5B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;SACnD;aAAM;YACL,OAAO,QAAQ,CAAC;SACjB;IACH,CAAC;IAGD,OAAO;IACA,MAAM,CAAC,eAAe,CAAY,QAAmB,EAAE,sBAA6C;QACzG,IAAI,CAAC,sBAAsB,IAAI,sBAAsB,CAAC,MAAM,IAAI,CAAC;YAC/D,OAAO,QAAQ,CAAC;aACb;YACH,IAAI,QAAQ,GAAG,gBAAC,CAAC,QAAQ,CAAC,QAAQ,EAAE,GAAG,sBAAsB,CAAC,OAAO,EAAE,CAAC,CAAC;YACzE,OAAkB,QAAQ,CAAC;SAC5B;IACH,CAAC;CAEF;AAzED,sBAyEC"}
@@ -1 +0,0 @@
1
- export * from "../gen/contracts";
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("../gen/contracts"), exports);
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api-clients/contracts/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiC"}
@@ -1,10 +0,0 @@
1
- /** The in-memory representation of the api client config file.
2
- */
3
- export declare class CodiacClientConfig {
4
- static readonly CONFIG_PATH: string;
5
- static readonly CONFIG_FILENAME = "config.json";
6
- private static loader;
7
- static load(): CodiacClientConfig | undefined;
8
- constructor();
9
- apiBaseUrl: string | undefined;
10
- }
@@ -1,29 +0,0 @@
1
- "use strict";
2
- var CodiacClientConfig_1;
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.CodiacClientConfig = void 0;
5
- const tslib_1 = require("tslib");
6
- const os = require("os");
7
- const path = require("path");
8
- const inversify_1 = require("inversify");
9
- const config_loader_1 = require("../common/config-loader");
10
- /** The in-memory representation of the api client config file.
11
- */
12
- let CodiacClientConfig = CodiacClientConfig_1 = class CodiacClientConfig {
13
- constructor() {
14
- }
15
- static load() {
16
- const os = require('os');
17
- let cfg = this.loader.load(); // yeah this is real helpful - maybe we should just accept the .loader.load() syntax and expose the loader itself?
18
- return cfg;
19
- }
20
- };
21
- CodiacClientConfig.CONFIG_PATH = path.posix.join(os.homedir(), `.config`, `codiac-api-client`);
22
- CodiacClientConfig.CONFIG_FILENAME = "config.json";
23
- CodiacClientConfig.loader = new config_loader_1.ConfigLoader(CodiacClientConfig_1.CONFIG_PATH, CodiacClientConfig_1.CONFIG_FILENAME);
24
- CodiacClientConfig = CodiacClientConfig_1 = tslib_1.__decorate([
25
- (0, inversify_1.injectable)(),
26
- tslib_1.__metadata("design:paramtypes", [])
27
- ], CodiacClientConfig);
28
- exports.CodiacClientConfig = CodiacClientConfig;
29
- //# sourceMappingURL=client-config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client-config.js","sourceRoot":"","sources":["../../../src/api-clients/gen/client-config.ts"],"names":[],"mappings":";;;;;AAAA,yBAAyB;AACzB,6BAA6B;AAC7B,yCAAuC;AACvC,2DAAuD;AAGvD;GACG;AAEI,IAAM,kBAAkB,0BAAxB,MAAM,kBAAkB;IAY7B;IAEA,CAAC;IATD,MAAM,CAAC,IAAI;QACT,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;QAEzB,IAAI,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAE,kHAAkH;QACjJ,OAAO,GAAG,CAAC;IACb,CAAC;;AATsB,8BAAW,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,mBAAmB,CAAC,CAAC;AAC5E,kCAAe,GAAG,aAAa,CAAC;AACxC,yBAAM,GAAG,IAAI,4BAAY,CAAqB,oBAAkB,CAAC,WAAW,EAAE,oBAAkB,CAAC,eAAe,CAAC,CAAA;AAHrH,kBAAkB;IAD9B,IAAA,sBAAU,GAAE;;GACA,kBAAkB,CAgB9B;AAhBY,gDAAkB"}
@@ -1,45 +0,0 @@
1
- import { IBetterLogger } from "@codiac.io/codiac-common/IBetterLogger";
2
- import { ApiUserCreds } from "../common/api-user-creds";
3
- import { RestClientBaseWithAuth } from "../common/security/rest-client-base-with-auth";
4
- import { CodiacClientConfig } from "./client-config";
5
- export declare class CodiacClient extends RestClientBaseWithAuth {
6
- static bootstrap(logger?: IBetterLogger): void;
7
- static DEFAULT_API_URL: string;
8
- /** Hardcoded to match the current setting on the server.
9
- * TODO: Get this from a config that is copied from the server proiject to the client project on build.
10
- */
11
- /** This factory method is just for convenience and hasty backward compatibility with consumers not using ioc. */
12
- static create(logger: IBetterLogger, apiRootUrl?: string, authToken?: string): CodiacClient;
13
- /** Local interface for the remote api.
14
- * @param settings (optional) configuration (ie: apiRootUrl) to use for the client. If not provided settings will be loaded from the config file on the local machine.
15
- *
16
- */
17
- constructor(logger: IBetterLogger, settings?: CodiacClientConfig, credentials?: ApiUserCreds);
18
- protected GetDefaultRootUrl(): string;
19
- }
20
- import { IRepoOptions, IDomainEntity, classDef } from "@codiac.io/codiac-common";
21
- import * as contracts from "@codiac.io/codiac-common/contracts";
22
- export interface IThrowingRepoOptions extends IRepoOptions {
23
- throwNotFound?: boolean;
24
- }
25
- /** HACK: This class exists ONLY because the client does not implement IRepo, so we cannot use ThrowingRepoWrapper.
26
- * because the client needs criteriaType argument on tryReadMany, tryPatchWhere, and tryDeleteWhere.
27
- *
28
- * Wraps repo methods to throw on error or when unsuccessful.
29
- * EXCEPT read, which can return undefined when none found
30
- * and readMany which can return an empty array when none found.
31
- */
32
- export declare class ThrowingCodiacClient {
33
- repo: CodiacClient;
34
- constructor(repo: CodiacClient);
35
- create<T extends IDomainEntity>(entityType: classDef<T>, entity: T, options?: IRepoOptions): Promise<T>;
36
- createMany<T extends IDomainEntity>(entityType: classDef<T>, entities: T[], options?: IRepoOptions): Promise<T[]>;
37
- read<T extends IDomainEntity>(entityType: classDef<T>, idSpec: contracts.IdSpec, options?: IThrowingRepoOptions): Promise<T | undefined>;
38
- readMany<T extends IDomainEntity, TCriteria extends contracts.ICriteria<T>>(entityType: classDef<T>, criteriaType: classDef<contracts.ICriteria<T>>, criteria: TCriteria, options?: IThrowingRepoOptions): Promise<T[]>;
39
- update<T extends IDomainEntity>(entityType: classDef<T>, entity: T, options?: IRepoOptions): Promise<T>;
40
- updateMany<T extends IDomainEntity>(entityType: classDef<T>, entities: T[], options?: IRepoOptions): Promise<T[]>;
41
- patch<T extends IDomainEntity>(entityType: classDef<T>, operations: contracts.PatchSpecForOne<T>, options?: IRepoOptions): Promise<T>;
42
- patchWhere<T extends IDomainEntity, TCriteria extends contracts.ICriteria<T>>(entityType: classDef<T>, criteriaType: classDef<contracts.ICriteria<T>>, operations: contracts.PatchSpecForMany<T, TCriteria>, options?: IRepoOptions): Promise<T[]>;
43
- delete<T extends IDomainEntity>(entityType: classDef<T>, idSpec: contracts.IdSpec, options?: IRepoOptions): Promise<T>;
44
- deleteWhere<T extends IDomainEntity>(entityType: classDef<T>, criteriaType: classDef<contracts.ICriteria<T>>, criteria: contracts.ICriteria<T>, options?: IRepoOptions): Promise<T[]>;
45
- }
@@ -1,331 +0,0 @@
1
- "use strict";
2
- var CodiacClient_1;
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.ThrowingCodiacClient = exports.CodiacClient = void 0;
5
- const tslib_1 = require("tslib");
6
- const inversify_1 = require("inversify");
7
- const codiac_common_1 = require("@codiac.io/codiac-common");
8
- const api_user_creds_1 = require("../common/api-user-creds");
9
- const rest_client_base_with_auth_1 = require("../common/security/rest-client-base-with-auth");
10
- const endpoints_1 = require("./endpoints");
11
- const client_config_1 = require("./client-config");
12
- // export interface IEndpointSpec {
13
- // entityType: typeRef; // this requires that TRequest extends Object. It prob should. Not sure where that breaks down - what is the scenario that we are passing in a contract that doesnt extend Object?
14
- // httpMethod: httpRestVerb;
15
- // route: string;
16
- // serializerMap?: stringDictionary;
17
- // }
18
- let CodiacClient = CodiacClient_1 = class CodiacClient extends rest_client_base_with_auth_1.RestClientBaseWithAuth /* implements IRepo */ {
19
- /** Local interface for the remote api.
20
- * @param settings (optional) configuration (ie: apiRootUrl) to use for the client. If not provided settings will be loaded from the config file on the local machine.
21
- *
22
- */
23
- constructor(logger, settings, credentials) {
24
- let ultimateSettings = settings !== null && settings !== void 0 ? settings : client_config_1.CodiacClientConfig.load(); // load up default settings if not specified
25
- super(logger, ultimateSettings === null || ultimateSettings === void 0 ? void 0 : ultimateSettings.apiBaseUrl, credentials === null || credentials === void 0 ? void 0 : credentials.apiToken);
26
- }
27
- static bootstrap(logger) {
28
- this.bootstrap_base(endpoints_1.Endpoints.list);
29
- }
30
- /** Hardcoded to match the current setting on the server.
31
- * TODO: Get this from a config that is copied from the server proiject to the client project on build.
32
- */
33
- /** This factory method is just for convenience and hasty backward compatibility with consumers not using ioc. */
34
- static create(logger, apiRootUrl, authToken) {
35
- return new CodiacClient_1(logger, { apiBaseUrl: apiRootUrl }, (authToken) ? { apiToken: authToken } : undefined);
36
- }
37
- GetDefaultRootUrl() {
38
- return CodiacClient_1.DEFAULT_API_URL;
39
- }
40
- };
41
- CodiacClient.DEFAULT_API_URL = "https://api.codiac.io";
42
- CodiacClient = CodiacClient_1 = tslib_1.__decorate([
43
- (0, inversify_1.injectable)(),
44
- tslib_1.__param(0, (0, inversify_1.inject)(codiac_common_1.INTERFACES.IBetterLogger)),
45
- tslib_1.__param(1, (0, inversify_1.inject)(client_config_1.CodiacClientConfig)),
46
- tslib_1.__param(2, (0, inversify_1.inject)(api_user_creds_1.ApiUserCreds)),
47
- tslib_1.__metadata("design:paramtypes", [Object, client_config_1.CodiacClientConfig,
48
- api_user_creds_1.ApiUserCreds])
49
- ], CodiacClient);
50
- exports.CodiacClient = CodiacClient;
51
- /** HACK: This class exists ONLY because the client does not implement IRepo, so we cannot use ThrowingRepoWrapper.
52
- * because the client needs criteriaType argument on tryReadMany, tryPatchWhere, and tryDeleteWhere.
53
- *
54
- * Wraps repo methods to throw on error or when unsuccessful.
55
- * EXCEPT read, which can return undefined when none found
56
- * and readMany which can return an empty array when none found.
57
- */
58
- let ThrowingCodiacClient = class ThrowingCodiacClient /* implements IThrowingRepo */ {
59
- constructor(repo) {
60
- this.repo = repo;
61
- }
62
- // startTransaction(): Promise<void> { return this.repo.startTransaction(); }
63
- // commit(): Promise<void> { return this.repo.commit(); }
64
- // rollback(): Promise<void> { return this.repo.rollback(); }
65
- create(entityType, entity, options) {
66
- return new Promise((resolve, reject) => tslib_1.__awaiter(this, void 0, void 0, function* () {
67
- try {
68
- let result = yield this.repo.tryCreate(entityType, entity, options);
69
- if (result.error) {
70
- throw result.error;
71
- }
72
- else if (result.success == false || result.output == undefined) {
73
- throw new Error(`Create ${entityType.name} failed without error. ${result.message || ""}`);
74
- }
75
- resolve(result.output);
76
- }
77
- catch (err) {
78
- reject(err);
79
- }
80
- }));
81
- }
82
- createMany(entityType, entities, options) {
83
- return new Promise((resolve, reject) => tslib_1.__awaiter(this, void 0, void 0, function* () {
84
- var _a;
85
- try {
86
- let result = yield this.repo.tryCreateMany(entityType, entities, options);
87
- if (result.error) {
88
- throw result.error;
89
- }
90
- else if (result.failures && result.failures.length > 0) {
91
- let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
92
- throw new Error(`CreateMany ${entityType.name} incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
93
- }
94
- else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
95
- throw new Error(`CreateMany ${entityType.name} failed without error. ${result.message || ""}`);
96
- }
97
- resolve(result.successes);
98
- }
99
- catch (err) {
100
- reject(err);
101
- }
102
- }));
103
- }
104
- read(entityType, idSpec, options) {
105
- return new Promise((resolve, reject) => tslib_1.__awaiter(this, void 0, void 0, function* () {
106
- try {
107
- let result = yield this.repo.tryRead(entityType, idSpec, options);
108
- if (result.error) {
109
- throw result.error;
110
- }
111
- else if (result.output == undefined && (options === null || options === void 0 ? void 0 : options.throwNotFound) == true) {
112
- throw new Error(`No ${entityType.name} found.`);
113
- }
114
- resolve(result.output);
115
- }
116
- catch (err) {
117
- reject(err);
118
- }
119
- }));
120
- }
121
- readMany(entityType, criteriaType, criteria, options) {
122
- return new Promise((resolve, reject) => tslib_1.__awaiter(this, void 0, void 0, function* () {
123
- try {
124
- let result = yield this.repo.tryReadMany(entityType, criteriaType, criteria, options);
125
- if (result.error) {
126
- throw result.error;
127
- }
128
- else if ((result.output == undefined || result.output.length == 0) && (options === null || options === void 0 ? void 0 : options.throwNotFound) == true) {
129
- throw new Error(`No ${entityType.name} found.`);
130
- }
131
- resolve(result.output || []);
132
- }
133
- catch (err) {
134
- reject(err);
135
- }
136
- }));
137
- }
138
- update(entityType, entity, options) {
139
- return new Promise((resolve, reject) => tslib_1.__awaiter(this, void 0, void 0, function* () {
140
- try {
141
- let result = yield this.repo.tryUpdate(entityType, entity, options);
142
- if (result.error) {
143
- throw result.error;
144
- }
145
- else if (result.success == false || result.output == undefined) {
146
- throw new Error(`Update ${entityType.name} failed without error. ${result.message || ""}`);
147
- }
148
- resolve(result.output);
149
- }
150
- catch (err) {
151
- reject(err);
152
- }
153
- }));
154
- }
155
- updateMany(entityType, entities, options) {
156
- return new Promise((resolve, reject) => tslib_1.__awaiter(this, void 0, void 0, function* () {
157
- var _a;
158
- try {
159
- let result = yield this.repo.tryUpdateMany(entityType, entities, options);
160
- if (result.error) {
161
- throw result.error;
162
- }
163
- else if (result.failures && result.failures.length > 0) {
164
- let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
165
- throw new Error(`UpdateMany ${entityType.name} incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
166
- }
167
- else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
168
- throw new Error(`UpdateMany ${entityType.name} failed without error. ${result.message || ""}`);
169
- }
170
- resolve(result.successes);
171
- }
172
- catch (err) {
173
- reject(err);
174
- }
175
- }));
176
- }
177
- // upsert<T extends IDomainEntity>(entityType: classDef<T>, entity: T, options?: IRepoOptions): Promise<T> {
178
- // return new Promise<T>(async (resolve, reject) => {
179
- // try {
180
- // let result = await this.repo.tryUpsert(entityType, entity, options);
181
- // if (result.error) {
182
- // throw result.error;
183
- // } else if (result.success == false || result.output == undefined) {
184
- // throw new Error(`Upsert failed without error. ${result.message || ""}`);
185
- // }
186
- // resolve(result.output);
187
- // } catch (err) {
188
- // reject(err);
189
- // }
190
- // });
191
- // }
192
- // upsertMany<T extends IDomainEntity>(entityType: classDef<T>, entities: T[], options?: IRepoOptions): Promise<T[]> {
193
- // return new Promise<T[]>(async (resolve, reject) => {
194
- // try {
195
- // let result = await this.repo.tryUpsertMany(entityType, entities, options);
196
- // if (result.error) {
197
- // throw result.error;
198
- // } else if (result.failures && result.failures.length > 0) {
199
- // let messageList = result.failures.map(f => `${f.message || ""} ${f.error?.message || ""}`).join("\n");
200
- // throw new Error(`UpsertMany incurred ${result.failures.length} failures (among ${result.successes?.length || 0} successes). ${result.message || ""}.\n ${messageList}`);
201
- // } else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
202
- // throw new Error(`UpsertMany failed without error. ${result.message || ""}`);
203
- // }
204
- // resolve(result.successes);
205
- // } catch (err) {
206
- // reject(err);
207
- // }
208
- // });
209
- // }
210
- // updatePartial<T extends IDomainEntity>(entityType: classDef<T>, entity: Partial<T>, options?: IRepoOptions): Promise<Partial<T>> {
211
- // return new Promise<Partial<T>>(async (resolve, reject) => {
212
- // try {
213
- // let operations = this.createPatchSpec(entity);
214
- // let result = await this.repo.tryPatch(entityType, operations, options);
215
- // if (result.error) {
216
- // throw result.error;
217
- // } else if (result.success == false || result.output == undefined) {
218
- // throw new Error(`UpdatePartial failed without error. ${result.message || ""}`);
219
- // }
220
- // resolve(result.output);
221
- // } catch (err) {
222
- // reject(err);
223
- // }
224
- // });
225
- // }
226
- // updateManyPartial<T extends IDomainEntity>(entityType: classDef<T>, partials: Partial<T>[], options?: IRepoOptions): Promise<Partial<T>[]> {
227
- // return new Promise<Partial<T>[]>(async (resolve, reject) => {
228
- // try {
229
- // let criteriaType = /* how do we get this? */;
230
- // let operations = this.createPatchSpecForMany(partials);
231
- // let result = await this.repo.tryPatchWhere(entityType, criteriaType, operations, options);
232
- // if (result.error) {
233
- // throw result.error;
234
- // } else if (result.failures && result.failures.length > 0) {
235
- // let messageList = result.failures.map(f => `${f.message || ""} ${f.error?.message || ""}`).join("\n");
236
- // throw new Error(`UpdateManyPartial incurred ${result.failures.length} failures (among ${result.successes?.length || 0} successes). ${result.message || ""}.\n ${messageList}`);
237
- // } else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
238
- // throw new Error(`UpdateManyPartial failed without error. ${result.message || ""}`);
239
- // }
240
- // resolve(result.successes);
241
- // } catch (err) {
242
- // reject(err);
243
- // }
244
- // });
245
- // }
246
- patch(entityType, operations, options) {
247
- return new Promise((resolve, reject) => tslib_1.__awaiter(this, void 0, void 0, function* () {
248
- try {
249
- let result = yield this.repo.tryPatch(entityType, operations, options);
250
- if (result.error) {
251
- throw result.error;
252
- }
253
- else if (result.success == false || result.output == undefined) {
254
- throw new Error(`UpdatePartial ${entityType.name} failed without error. ${result.message || ""}`);
255
- }
256
- resolve(result.output);
257
- }
258
- catch (err) {
259
- reject(err);
260
- }
261
- }));
262
- }
263
- patchWhere(entityType, criteriaType, operations, options) {
264
- return new Promise((resolve, reject) => tslib_1.__awaiter(this, void 0, void 0, function* () {
265
- var _a;
266
- try {
267
- let result = yield this.repo.tryPatchWhere(entityType, criteriaType, operations, options);
268
- if (result.error) {
269
- throw result.error;
270
- }
271
- else if (result.failures && result.failures.length > 0) {
272
- let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
273
- throw new Error(`${entityType.name} PatchWhere incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
274
- }
275
- else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
276
- throw new Error(`${entityType.name} PatchWhere failed without error. ${result.message || ""}`);
277
- }
278
- resolve(result.successes);
279
- }
280
- catch (err) {
281
- reject(err);
282
- }
283
- }));
284
- }
285
- delete(entityType, idSpec, options) {
286
- return new Promise((resolve, reject) => tslib_1.__awaiter(this, void 0, void 0, function* () {
287
- try {
288
- let result = yield this.repo.tryDelete(entityType, idSpec, options);
289
- if (result.error) {
290
- throw result.error;
291
- }
292
- else if (result.success == false || result.output == undefined) {
293
- throw new Error(`Delete ${entityType.name} failed without error. ${result.message || ""}`);
294
- }
295
- resolve(result.output);
296
- }
297
- catch (err) {
298
- reject(err);
299
- }
300
- }));
301
- }
302
- deleteWhere(entityType, criteriaType, criteria, options) {
303
- return new Promise((resolve, reject) => tslib_1.__awaiter(this, void 0, void 0, function* () {
304
- var _a;
305
- try {
306
- let result = yield this.repo.tryDeleteWhere(entityType, criteriaType, criteria, options);
307
- if (result.error) {
308
- throw result.error;
309
- }
310
- else if (result.failures && result.failures.length > 0) {
311
- let messageList = result.failures.map(f => { var _a; return `${f.message || ""} ${((_a = f.error) === null || _a === void 0 ? void 0 : _a.message) || ""}`; }).join("\n");
312
- throw new Error(`${entityType.name} DeleteWhere incurred ${result.failures.length} failures (among ${((_a = result.successes) === null || _a === void 0 ? void 0 : _a.length) || 0} successes). ${result.message || ""}.\n ${messageList}`);
313
- }
314
- else if (result.success == false || result.successes == undefined || result.successes.length == 0) {
315
- throw new Error(`${entityType.name} DeleteWhere failed without error. ${result.message || ""}`);
316
- }
317
- resolve(result.successes);
318
- }
319
- catch (err) {
320
- reject(err);
321
- }
322
- }));
323
- }
324
- };
325
- ThrowingCodiacClient = tslib_1.__decorate([
326
- (0, inversify_1.injectable)(),
327
- tslib_1.__param(0, (0, inversify_1.inject)(CodiacClient)),
328
- tslib_1.__metadata("design:paramtypes", [CodiacClient])
329
- ], ThrowingCodiacClient);
330
- exports.ThrowingCodiacClient = ThrowingCodiacClient;
331
- //# sourceMappingURL=client.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/api-clients/gen/client.ts"],"names":[],"mappings":";;;;;AAAA,yCAA+C;AAC/C,4DAAsD;AAGtD,6DAAwD;AACxD,8FAAuF;AACvF,2CAAwC;AACxC,mDAAqD;AAErD,mCAAmC;AACnC,gNAAgN;AAChN,8BAA8B;AAC9B,mBAAmB;AACnB,sCAAsC;AACtC,IAAI;AAKG,IAAM,YAAY,oBAAlB,MAAM,YAAa,SAAQ,mDAAsB,CAAC,sBAAsB;IAoB7E;;;OAGG;IACH,YAA8C,MAAqB,EAA8B,QAA6B,EACtG,WAA0B;QAChD,IAAI,gBAAgB,GAAG,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,kCAAkB,CAAC,IAAI,EAAE,CAAC,CAAE,6CAA6C;QAC5G,KAAK,CAAC,MAAM,EAAE,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,UAAU,EAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,QAAQ,CAAC,CAAC;IACrE,CAAC;IAzBD,MAAM,CAAC,SAAS,CAAC,MAAsB;QACrC,IAAI,CAAC,cAAc,CAAC,qBAAS,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IAID;;OAEG;IAGH,iHAAiH;IAC1G,MAAM,CAAC,MAAM,CAAC,MAAqB,EAAE,UAAmB,EA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