@stigg/api-client-js
Advanced tools
+17
-4
| { | ||
| "name": "@stigg/api-client-js", | ||
| "version": "6.2.3", | ||
| "version": "6.3.3", | ||
| "license": "STIGG SDK LICENSE", | ||
| "main": "src/index.js", | ||
| "typings": "src/index.d.ts", | ||
| "type": "commonjs", | ||
| "scripts": { | ||
| "generate": "graphql-codegen --config codegen.yml", | ||
| "test": "yarn run -T jest --forceExit", | ||
| "lint": "yarn run -T eslint 'src/**/*.ts'" | ||
| }, | ||
| "dependencies": { | ||
@@ -10,4 +17,10 @@ "graphql": "^15.6.1", | ||
| }, | ||
| "main": "./src/index.js", | ||
| "typings": "./src/index.d.ts" | ||
| } | ||
| "devDependencies": { | ||
| "@graphql-codegen/cli": "^3.3.1", | ||
| "@graphql-codegen/fragment-matcher": "^3.3.3", | ||
| "@graphql-codegen/typescript": "^3.0.4", | ||
| "@graphql-codegen/typescript-graphql-request": "^4.5.9", | ||
| "@graphql-codegen/typescript-operations": "^3.0.4" | ||
| }, | ||
| "types": "./src/index.d.ts" | ||
| } |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.isCreditEntitlementWithSummary = exports.isFeatureEntitlementWithSummary = exports.isCreditEntitlementFragment = exports.isFeatureEntitlementFragment = void 0; | ||
| exports.isFeatureEntitlementFragment = isFeatureEntitlementFragment; | ||
| exports.isCreditEntitlementFragment = isCreditEntitlementFragment; | ||
| exports.isFeatureEntitlementWithSummary = isFeatureEntitlementWithSummary; | ||
| exports.isCreditEntitlementWithSummary = isCreditEntitlementWithSummary; | ||
| /** | ||
@@ -9,6 +12,4 @@ * Type guard to check if an entitlement is a FeatureEntitlement. | ||
| function isFeatureEntitlementFragment(entitlement) { | ||
| // eslint-disable-next-line no-underscore-dangle -- __typename is a standard GraphQL field for union type discrimination | ||
| return entitlement.__typename === 'FeatureEntitlement'; | ||
| } | ||
| exports.isFeatureEntitlementFragment = isFeatureEntitlementFragment; | ||
| /** | ||
@@ -19,24 +20,16 @@ * Type guard to check if an entitlement is a CreditEntitlement. | ||
| function isCreditEntitlementFragment(entitlement) { | ||
| // eslint-disable-next-line no-underscore-dangle -- __typename is a standard GraphQL field for union type discrimination | ||
| return entitlement.__typename === 'CreditEntitlement'; | ||
| } | ||
| exports.isCreditEntitlementFragment = isCreditEntitlementFragment; | ||
| /** | ||
| * Type guard to check if an entitlement with summary is a FeatureEntitlementWithSummary. | ||
| */ | ||
| // eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
| function isFeatureEntitlementWithSummary(entitlement) { | ||
| // eslint-disable-next-line no-underscore-dangle | ||
| return (entitlement === null || entitlement === void 0 ? void 0 : entitlement.__typename) === 'FeatureEntitlementWithSummary'; | ||
| } | ||
| exports.isFeatureEntitlementWithSummary = isFeatureEntitlementWithSummary; | ||
| /** | ||
| * Type guard to check if an entitlement with summary is a CreditEntitlementWithSummary. | ||
| */ | ||
| // eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
| function isCreditEntitlementWithSummary(entitlement) { | ||
| // eslint-disable-next-line no-underscore-dangle | ||
| return (entitlement === null || entitlement === void 0 ? void 0 : entitlement.__typename) === 'CreditEntitlementWithSummary'; | ||
| } | ||
| exports.isCreditEntitlementWithSummary = isCreditEntitlementWithSummary; | ||
| //# sourceMappingURL=entitlementTypeGuards.js.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"entitlementTypeGuards.js","sourceRoot":"","sources":["../../src/entitlementTypeGuards.ts"],"names":[],"mappings":";;;AAMA;;;GAGG;AACH,SAAgB,4BAA4B,CAC1C,WAAqC;IAErC,wHAAwH;IACxH,OAAO,WAAW,CAAC,UAAU,KAAK,oBAAoB,CAAC;AACzD,CAAC;AALD,oEAKC;AAED;;;GAGG;AACH,SAAgB,2BAA2B,CACzC,WAAqC;IAErC,wHAAwH;IACxH,OAAO,WAAW,CAAC,UAAU,KAAK,mBAAmB,CAAC;AACxD,CAAC;AALD,kEAKC;AAED;;GAEG;AACH,8DAA8D;AAC9D,SAAgB,+BAA+B,CAAC,WAAgB;IAC9D,gDAAgD;IAChD,OAAO,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,MAAK,+BAA+B,CAAC;AACrE,CAAC;AAHD,0EAGC;AAED;;GAEG;AACH,8DAA8D;AAC9D,SAAgB,8BAA8B,CAAC,WAAgB;IAC7D,gDAAgD;IAChD,OAAO,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,MAAK,8BAA8B,CAAC;AACpE,CAAC;AAHD,wEAGC"} | ||
| {"version":3,"file":"entitlementTypeGuards.js","sourceRoot":"","sources":["../../src/entitlementTypeGuards.ts"],"names":[],"mappings":";;AAMA,oEAIC;AAMD,kEAIC;AAKD,0EAEC;AAKD,wEAEC;AAhCD;;;GAGG;AACH,SAAgB,4BAA4B,CAC1C,WAAqC;IAErC,OAAO,WAAW,CAAC,UAAU,KAAK,oBAAoB,CAAC;AACzD,CAAC;AAED;;;GAGG;AACH,SAAgB,2BAA2B,CACzC,WAAqC;IAErC,OAAO,WAAW,CAAC,UAAU,KAAK,mBAAmB,CAAC;AACxD,CAAC;AAED;;GAEG;AACH,SAAgB,+BAA+B,CAAC,WAAgB;IAC9D,OAAO,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,MAAK,+BAA+B,CAAC;AACrE,CAAC;AAED;;GAEG;AACH,SAAgB,8BAA8B,CAAC,WAAgB;IAC7D,OAAO,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,MAAK,8BAA8B,CAAC;AACpE,CAAC"} |
+1
-0
@@ -0,2 +1,3 @@ | ||
| export * from './generated/sdk'; | ||
| export * from './lib/client'; | ||
| export * from './entitlementTypeGuards'; |
+17
-3
| "use strict"; | ||
| var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
| if (k2 === undefined) k2 = k; | ||
| var desc = Object.getOwnPropertyDescriptor(m, k); | ||
| if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
| desc = { enumerable: true, get: function() { return m[k]; } }; | ||
| } | ||
| Object.defineProperty(o, k2, desc); | ||
| }) : (function(o, m, k, k2) { | ||
| if (k2 === undefined) k2 = k; | ||
| o[k2] = m[k]; | ||
| })); | ||
| var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
| for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| const tslib_1 = require("tslib"); | ||
| tslib_1.__exportStar(require("./lib/client"), exports); | ||
| tslib_1.__exportStar(require("./entitlementTypeGuards"), exports); | ||
| __exportStar(require("./generated/sdk"), exports); | ||
| __exportStar(require("./lib/client"), exports); | ||
| __exportStar(require("./entitlementTypeGuards"), exports); | ||
| //# sourceMappingURL=index.js.map |
+1
-1
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,uDAA6B;AAC7B,kEAAwC"} | ||
| {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,+CAA6B;AAC7B,0DAAwC"} |
| import { Sdk } from '../generated/sdk'; | ||
| export * as Types from '../generated/sdk'; | ||
| export declare type StiggManagementClientOptions = { | ||
| export type StiggManagementClientOptions = { | ||
| apiUrl?: string; | ||
| apiKey: string; | ||
| }; | ||
| export declare type StiggManagementClient = Sdk; | ||
| export type StiggManagementClient = Sdk; | ||
| export declare const StiggManagement: { | ||
| createClient: (options: StiggManagementClientOptions) => StiggManagementClient; | ||
| }; |
+34
-1
| "use strict"; | ||
| var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
| if (k2 === undefined) k2 = k; | ||
| var desc = Object.getOwnPropertyDescriptor(m, k); | ||
| if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
| desc = { enumerable: true, get: function() { return m[k]; } }; | ||
| } | ||
| Object.defineProperty(o, k2, desc); | ||
| }) : (function(o, m, k, k2) { | ||
| if (k2 === undefined) k2 = k; | ||
| o[k2] = m[k]; | ||
| })); | ||
| var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
| Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
| }) : function(o, v) { | ||
| o["default"] = v; | ||
| }); | ||
| var __importStar = (this && this.__importStar) || (function () { | ||
| var ownKeys = function(o) { | ||
| ownKeys = Object.getOwnPropertyNames || function (o) { | ||
| var ar = []; | ||
| for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; | ||
| return ar; | ||
| }; | ||
| return ownKeys(o); | ||
| }; | ||
| return function (mod) { | ||
| if (mod && mod.__esModule) return mod; | ||
| var result = {}; | ||
| if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); | ||
| __setModuleDefault(result, mod); | ||
| return result; | ||
| }; | ||
| })(); | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -7,3 +40,3 @@ exports.StiggManagement = exports.Types = void 0; | ||
| // todo: separate between schema and operations types | ||
| exports.Types = require("../generated/sdk"); | ||
| exports.Types = __importStar(require("../generated/sdk")); | ||
| exports.StiggManagement = { | ||
@@ -10,0 +43,0 @@ createClient: (options) => { |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/lib/client.ts"],"names":[],"mappings":";;;AAAA,0CAAmE;AACnE,qDAAgD;AAEhD,qDAAqD;AACrD,4CAA0C;AAU7B,QAAA,eAAe,GAAG;IAC7B,YAAY,EAAE,CACZ,OAAqC,EACd,EAAE;QACzB,MAAM,EAAE,MAAM,GAAG,8BAA8B,EAAE,GAAG,OAAO,CAAC;QAE5D,MAAM,SAAS,GAAG,IAAI,+BAAa,CAAC,MAAM,EAAE;YAC1C,OAAO,EAAE;gBACP,WAAW,EAAE,OAAO,CAAC,MAAM;aAC5B;SACF,CAAC,CAAC;QAEH,MAAM,gCAAgC,GAAuB,CAC3D,MAAM,EACN,cAAc,EACd,cAAc,EACd,EAAE;YACF,OAAO,MAAM,CAAC,EAAE,0BAA0B,EAAE,cAAc,EAAE,CAAC,CAAC;QAChE,CAAC,CAAC;QAEF,OAAO,IAAA,YAAM,EAAC,SAAS,EAAE,gCAAgC,CAAC,CAAC;IAC7D,CAAC;CACF,CAAC"} | ||
| {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/lib/client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0CAAmE;AACnE,qDAAgD;AAEhD,qDAAqD;AACrD,0DAA0C;AAU7B,QAAA,eAAe,GAAG;IAC7B,YAAY,EAAE,CAAC,OAAqC,EAAyB,EAAE;QAC7E,MAAM,EAAE,MAAM,GAAG,8BAA8B,EAAE,GAAG,OAAO,CAAC;QAE5D,MAAM,SAAS,GAAG,IAAI,+BAAa,CAAC,MAAM,EAAE;YAC1C,OAAO,EAAE;gBACP,WAAW,EAAE,OAAO,CAAC,MAAM;aAC5B;SACF,CAAC,CAAC;QAEH,MAAM,gCAAgC,GAAuB,CAAC,MAAM,EAAE,cAAc,EAAE,cAAc,EAAE,EAAE;YACtG,OAAO,MAAM,CAAC,EAAE,0BAA0B,EAAE,cAAc,EAAE,CAAC,CAAC;QAChE,CAAC,CAAC;QAEF,OAAO,IAAA,YAAM,EAAC,SAAS,EAAE,gCAAgC,CAAC,CAAC;IAC7D,CAAC;CACF,CAAC"} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
15800
0.28%703953
-0.86%5
Infinity%