@stigg/api-client-js 5.287.1 → 6.3.3
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.
- package/package.json +17 -4
- package/src/entitlementTypeGuards.js +4 -11
- package/src/entitlementTypeGuards.js.map +1 -1
- package/src/generated/sdk.d.ts +684 -684
- package/src/generated/sdk.js +143 -140
- package/src/generated/sdk.js.map +1 -1
- package/src/index.d.ts +1 -0
- package/src/index.js +17 -3
- package/src/index.js.map +1 -1
- package/src/lib/client.d.ts +2 -2
- package/src/lib/client.js +34 -1
- package/src/lib/client.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stigg/api-client-js",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.3.3",
|
|
4
4
|
"license": "STIGG SDK LICENSE",
|
|
5
|
+
"main": "src/index.js",
|
|
6
|
+
"typings": "src/index.d.ts",
|
|
5
7
|
"type": "commonjs",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"generate": "graphql-codegen --config codegen.yml",
|
|
10
|
+
"test": "yarn run -T jest --forceExit",
|
|
11
|
+
"lint": "yarn run -T eslint 'src/**/*.ts'"
|
|
12
|
+
},
|
|
6
13
|
"dependencies": {
|
|
7
14
|
"graphql": "^15.6.1",
|
|
8
15
|
"graphql-request": "~5.1.0"
|
|
9
16
|
},
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@graphql-codegen/cli": "^3.3.1",
|
|
19
|
+
"@graphql-codegen/fragment-matcher": "^3.3.3",
|
|
20
|
+
"@graphql-codegen/typescript": "^3.0.4",
|
|
21
|
+
"@graphql-codegen/typescript-graphql-request": "^4.5.9",
|
|
22
|
+
"@graphql-codegen/typescript-operations": "^3.0.4"
|
|
23
|
+
},
|
|
24
|
+
"types": "./src/index.d.ts"
|
|
25
|
+
}
|
|
@@ -1,40 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.isFeatureEntitlementFragment = isFeatureEntitlementFragment;
|
|
4
|
+
exports.isCreditEntitlementFragment = isCreditEntitlementFragment;
|
|
5
|
+
exports.isFeatureEntitlementWithSummary = isFeatureEntitlementWithSummary;
|
|
6
|
+
exports.isCreditEntitlementWithSummary = isCreditEntitlementWithSummary;
|
|
4
7
|
/**
|
|
5
8
|
* Type guard to check if an entitlement is a FeatureEntitlement.
|
|
6
9
|
* Uses __typename which is a standard GraphQL field for union type discrimination.
|
|
7
10
|
*/
|
|
8
11
|
function isFeatureEntitlementFragment(entitlement) {
|
|
9
|
-
// eslint-disable-next-line no-underscore-dangle -- __typename is a standard GraphQL field for union type discrimination
|
|
10
12
|
return entitlement.__typename === 'FeatureEntitlement';
|
|
11
13
|
}
|
|
12
|
-
exports.isFeatureEntitlementFragment = isFeatureEntitlementFragment;
|
|
13
14
|
/**
|
|
14
15
|
* Type guard to check if an entitlement is a CreditEntitlement.
|
|
15
16
|
* Uses __typename which is a standard GraphQL field for union type discrimination.
|
|
16
17
|
*/
|
|
17
18
|
function isCreditEntitlementFragment(entitlement) {
|
|
18
|
-
// eslint-disable-next-line no-underscore-dangle -- __typename is a standard GraphQL field for union type discrimination
|
|
19
19
|
return entitlement.__typename === 'CreditEntitlement';
|
|
20
20
|
}
|
|
21
|
-
exports.isCreditEntitlementFragment = isCreditEntitlementFragment;
|
|
22
21
|
/**
|
|
23
22
|
* Type guard to check if an entitlement with summary is a FeatureEntitlementWithSummary.
|
|
24
23
|
*/
|
|
25
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
26
24
|
function isFeatureEntitlementWithSummary(entitlement) {
|
|
27
|
-
// eslint-disable-next-line no-underscore-dangle
|
|
28
25
|
return (entitlement === null || entitlement === void 0 ? void 0 : entitlement.__typename) === 'FeatureEntitlementWithSummary';
|
|
29
26
|
}
|
|
30
|
-
exports.isFeatureEntitlementWithSummary = isFeatureEntitlementWithSummary;
|
|
31
27
|
/**
|
|
32
28
|
* Type guard to check if an entitlement with summary is a CreditEntitlementWithSummary.
|
|
33
29
|
*/
|
|
34
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
35
30
|
function isCreditEntitlementWithSummary(entitlement) {
|
|
36
|
-
// eslint-disable-next-line no-underscore-dangle
|
|
37
31
|
return (entitlement === null || entitlement === void 0 ? void 0 : entitlement.__typename) === 'CreditEntitlementWithSummary';
|
|
38
32
|
}
|
|
39
|
-
exports.isCreditEntitlementWithSummary = isCreditEntitlementWithSummary;
|
|
40
33
|
//# sourceMappingURL=entitlementTypeGuards.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entitlementTypeGuards.js","sourceRoot":"","sources":["../../src/entitlementTypeGuards.ts"],"names":[],"mappings":"
|
|
1
|
+
{"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"}
|