@visa-check-r/integrations 0.0.77 → 0.0.78
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/dist/index.cjs.js +21 -15
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +26 -10
- package/dist/index.d.ts +26 -10
- package/dist/index.esm.js +21 -15
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -403,8 +403,8 @@ interface CreditTransaction {
|
|
|
403
403
|
metaJson: string;
|
|
404
404
|
createdAt: string;
|
|
405
405
|
creditTransactionType: "credit" | "debit";
|
|
406
|
-
|
|
407
|
-
|
|
406
|
+
couponId: string;
|
|
407
|
+
couponAmount: number;
|
|
408
408
|
creditPlan?: CreditPlan;
|
|
409
409
|
user?: User;
|
|
410
410
|
}
|
|
@@ -1866,20 +1866,28 @@ type CouponRedemptionCRUD = EntityCRUD<CouponRedemption, typeof ENTITY$4>;
|
|
|
1866
1866
|
declare const couponRedemptionIntegration: {
|
|
1867
1867
|
get: {
|
|
1868
1868
|
responseFields: ["couponRedemption"];
|
|
1869
|
-
nestedFields: Record<"couponRedemption", CouponRedemptionFields
|
|
1869
|
+
nestedFields: Record<"couponRedemption", CouponRedemptionFields> & {
|
|
1870
|
+
coupon: CouponFields;
|
|
1871
|
+
};
|
|
1870
1872
|
};
|
|
1871
1873
|
create: {
|
|
1872
1874
|
responseFields: ["couponRedemption"];
|
|
1873
|
-
nestedFields: Record<"couponRedemption", CouponRedemptionFields
|
|
1875
|
+
nestedFields: Record<"couponRedemption", CouponRedemptionFields> & {
|
|
1876
|
+
coupon: CouponFields;
|
|
1877
|
+
};
|
|
1874
1878
|
};
|
|
1875
1879
|
update: {
|
|
1876
1880
|
responseFields: ["couponRedemption"];
|
|
1877
|
-
nestedFields: Record<"couponRedemption", CouponRedemptionFields
|
|
1881
|
+
nestedFields: Record<"couponRedemption", CouponRedemptionFields> & {
|
|
1882
|
+
coupon: CouponFields;
|
|
1883
|
+
};
|
|
1878
1884
|
};
|
|
1879
1885
|
};
|
|
1880
1886
|
declare const couponRedemptionListIntegration: {
|
|
1881
1887
|
responseFields: readonly ["couponRedemptions", "total"];
|
|
1882
|
-
nestedFields: Record<"couponRedemptions", CouponRedemptionFields
|
|
1888
|
+
nestedFields: Record<"couponRedemptions", CouponRedemptionFields> & {
|
|
1889
|
+
coupon: CouponFields;
|
|
1890
|
+
};
|
|
1883
1891
|
};
|
|
1884
1892
|
declare const couponRedemptionDeleteIntegration: {
|
|
1885
1893
|
responseFields: ["couponRedemptionId"];
|
|
@@ -2088,15 +2096,21 @@ type ServiceCreditCostService = ReturnType<typeof createServiceCreditCostService
|
|
|
2088
2096
|
declare const createCouponRedemptionService: (client: GraphQLClient) => {
|
|
2089
2097
|
createCouponRedemption: (input: CreateEntityRequest<CouponRedemption, "couponRedemption">, fetchFields?: {
|
|
2090
2098
|
root?: "couponRedemption"[] | undefined;
|
|
2091
|
-
nestedFields?: Record<"couponRedemption", CouponRedemptionFields>
|
|
2099
|
+
nestedFields?: (Record<"couponRedemption", CouponRedemptionFields> & {
|
|
2100
|
+
coupon: CouponFields;
|
|
2101
|
+
}) | undefined;
|
|
2092
2102
|
} | undefined, option?: RequestOption) => Promise<EntityResponse<CouponRedemption, "couponRedemption"> | undefined>;
|
|
2093
2103
|
updateCouponRedemption: (input: UpdateEntityRequest<CouponRedemption, "couponRedemption">, fetchFields?: {
|
|
2094
2104
|
root?: "couponRedemption"[] | undefined;
|
|
2095
|
-
nestedFields?: Record<"couponRedemption", CouponRedemptionFields>
|
|
2105
|
+
nestedFields?: (Record<"couponRedemption", CouponRedemptionFields> & {
|
|
2106
|
+
coupon: CouponFields;
|
|
2107
|
+
}) | undefined;
|
|
2096
2108
|
} | undefined, option?: RequestOption) => Promise<EntityResponse<CouponRedemption, "couponRedemption"> | undefined>;
|
|
2097
2109
|
getCouponRedemption: (input: GetEntityRequest<CouponRedemption, "couponRedemption">, fetchFields?: {
|
|
2098
2110
|
root?: "couponRedemption"[] | undefined;
|
|
2099
|
-
nestedFields?: Record<"couponRedemption", CouponRedemptionFields>
|
|
2111
|
+
nestedFields?: (Record<"couponRedemption", CouponRedemptionFields> & {
|
|
2112
|
+
coupon: CouponFields;
|
|
2113
|
+
}) | undefined;
|
|
2100
2114
|
} | undefined, option?: RequestOption) => Promise<EntityResponse<CouponRedemption, "couponRedemption"> | undefined>;
|
|
2101
2115
|
deleteCouponRedemption: (input: DeleteEntityRequest<"couponRedemption">, fetchFields?: {
|
|
2102
2116
|
root?: "couponRedemptionId"[] | undefined;
|
|
@@ -2104,7 +2118,9 @@ declare const createCouponRedemptionService: (client: GraphQLClient) => {
|
|
|
2104
2118
|
} | undefined, option?: RequestOption) => Promise<DeleteEntityResponse<"couponRedemption"> | undefined>;
|
|
2105
2119
|
listCouponRedemptions: (input: ListEntityRequest<CouponRedemption, "couponRedemption">, fetchFields?: {
|
|
2106
2120
|
root?: ("total" | "couponRedemptions")[] | undefined;
|
|
2107
|
-
nestedFields?: Record<"couponRedemptions", CouponRedemptionFields>
|
|
2121
|
+
nestedFields?: (Record<"couponRedemptions", CouponRedemptionFields> & {
|
|
2122
|
+
coupon: CouponFields;
|
|
2123
|
+
}) | undefined;
|
|
2108
2124
|
} | undefined, option?: RequestOption) => Promise<ListEntityResponse<CouponRedemption, "couponRedemption"> | undefined>;
|
|
2109
2125
|
};
|
|
2110
2126
|
type CouponRedemptionService = ReturnType<typeof createCouponRedemptionService>;
|
package/dist/index.d.ts
CHANGED
|
@@ -403,8 +403,8 @@ interface CreditTransaction {
|
|
|
403
403
|
metaJson: string;
|
|
404
404
|
createdAt: string;
|
|
405
405
|
creditTransactionType: "credit" | "debit";
|
|
406
|
-
|
|
407
|
-
|
|
406
|
+
couponId: string;
|
|
407
|
+
couponAmount: number;
|
|
408
408
|
creditPlan?: CreditPlan;
|
|
409
409
|
user?: User;
|
|
410
410
|
}
|
|
@@ -1866,20 +1866,28 @@ type CouponRedemptionCRUD = EntityCRUD<CouponRedemption, typeof ENTITY$4>;
|
|
|
1866
1866
|
declare const couponRedemptionIntegration: {
|
|
1867
1867
|
get: {
|
|
1868
1868
|
responseFields: ["couponRedemption"];
|
|
1869
|
-
nestedFields: Record<"couponRedemption", CouponRedemptionFields
|
|
1869
|
+
nestedFields: Record<"couponRedemption", CouponRedemptionFields> & {
|
|
1870
|
+
coupon: CouponFields;
|
|
1871
|
+
};
|
|
1870
1872
|
};
|
|
1871
1873
|
create: {
|
|
1872
1874
|
responseFields: ["couponRedemption"];
|
|
1873
|
-
nestedFields: Record<"couponRedemption", CouponRedemptionFields
|
|
1875
|
+
nestedFields: Record<"couponRedemption", CouponRedemptionFields> & {
|
|
1876
|
+
coupon: CouponFields;
|
|
1877
|
+
};
|
|
1874
1878
|
};
|
|
1875
1879
|
update: {
|
|
1876
1880
|
responseFields: ["couponRedemption"];
|
|
1877
|
-
nestedFields: Record<"couponRedemption", CouponRedemptionFields
|
|
1881
|
+
nestedFields: Record<"couponRedemption", CouponRedemptionFields> & {
|
|
1882
|
+
coupon: CouponFields;
|
|
1883
|
+
};
|
|
1878
1884
|
};
|
|
1879
1885
|
};
|
|
1880
1886
|
declare const couponRedemptionListIntegration: {
|
|
1881
1887
|
responseFields: readonly ["couponRedemptions", "total"];
|
|
1882
|
-
nestedFields: Record<"couponRedemptions", CouponRedemptionFields
|
|
1888
|
+
nestedFields: Record<"couponRedemptions", CouponRedemptionFields> & {
|
|
1889
|
+
coupon: CouponFields;
|
|
1890
|
+
};
|
|
1883
1891
|
};
|
|
1884
1892
|
declare const couponRedemptionDeleteIntegration: {
|
|
1885
1893
|
responseFields: ["couponRedemptionId"];
|
|
@@ -2088,15 +2096,21 @@ type ServiceCreditCostService = ReturnType<typeof createServiceCreditCostService
|
|
|
2088
2096
|
declare const createCouponRedemptionService: (client: GraphQLClient) => {
|
|
2089
2097
|
createCouponRedemption: (input: CreateEntityRequest<CouponRedemption, "couponRedemption">, fetchFields?: {
|
|
2090
2098
|
root?: "couponRedemption"[] | undefined;
|
|
2091
|
-
nestedFields?: Record<"couponRedemption", CouponRedemptionFields>
|
|
2099
|
+
nestedFields?: (Record<"couponRedemption", CouponRedemptionFields> & {
|
|
2100
|
+
coupon: CouponFields;
|
|
2101
|
+
}) | undefined;
|
|
2092
2102
|
} | undefined, option?: RequestOption) => Promise<EntityResponse<CouponRedemption, "couponRedemption"> | undefined>;
|
|
2093
2103
|
updateCouponRedemption: (input: UpdateEntityRequest<CouponRedemption, "couponRedemption">, fetchFields?: {
|
|
2094
2104
|
root?: "couponRedemption"[] | undefined;
|
|
2095
|
-
nestedFields?: Record<"couponRedemption", CouponRedemptionFields>
|
|
2105
|
+
nestedFields?: (Record<"couponRedemption", CouponRedemptionFields> & {
|
|
2106
|
+
coupon: CouponFields;
|
|
2107
|
+
}) | undefined;
|
|
2096
2108
|
} | undefined, option?: RequestOption) => Promise<EntityResponse<CouponRedemption, "couponRedemption"> | undefined>;
|
|
2097
2109
|
getCouponRedemption: (input: GetEntityRequest<CouponRedemption, "couponRedemption">, fetchFields?: {
|
|
2098
2110
|
root?: "couponRedemption"[] | undefined;
|
|
2099
|
-
nestedFields?: Record<"couponRedemption", CouponRedemptionFields>
|
|
2111
|
+
nestedFields?: (Record<"couponRedemption", CouponRedemptionFields> & {
|
|
2112
|
+
coupon: CouponFields;
|
|
2113
|
+
}) | undefined;
|
|
2100
2114
|
} | undefined, option?: RequestOption) => Promise<EntityResponse<CouponRedemption, "couponRedemption"> | undefined>;
|
|
2101
2115
|
deleteCouponRedemption: (input: DeleteEntityRequest<"couponRedemption">, fetchFields?: {
|
|
2102
2116
|
root?: "couponRedemptionId"[] | undefined;
|
|
@@ -2104,7 +2118,9 @@ declare const createCouponRedemptionService: (client: GraphQLClient) => {
|
|
|
2104
2118
|
} | undefined, option?: RequestOption) => Promise<DeleteEntityResponse<"couponRedemption"> | undefined>;
|
|
2105
2119
|
listCouponRedemptions: (input: ListEntityRequest<CouponRedemption, "couponRedemption">, fetchFields?: {
|
|
2106
2120
|
root?: ("total" | "couponRedemptions")[] | undefined;
|
|
2107
|
-
nestedFields?: Record<"couponRedemptions", CouponRedemptionFields>
|
|
2121
|
+
nestedFields?: (Record<"couponRedemptions", CouponRedemptionFields> & {
|
|
2122
|
+
coupon: CouponFields;
|
|
2123
|
+
}) | undefined;
|
|
2108
2124
|
} | undefined, option?: RequestOption) => Promise<ListEntityResponse<CouponRedemption, "couponRedemption"> | undefined>;
|
|
2109
2125
|
};
|
|
2110
2126
|
type CouponRedemptionService = ReturnType<typeof createCouponRedemptionService>;
|
package/dist/index.esm.js
CHANGED
|
@@ -2844,29 +2844,35 @@ var serviceCreditCostQuery = [
|
|
|
2844
2844
|
"serviceName"
|
|
2845
2845
|
];
|
|
2846
2846
|
|
|
2847
|
-
// src/services/subscription/types/coupon-redemption.type.ts
|
|
2848
|
-
var ENTITY2 = "couponRedemption";
|
|
2849
|
-
var couponRedemptionIntegration = createStandardEntityIntegration({
|
|
2850
|
-
key: ENTITY2,
|
|
2851
|
-
fields: couponRedemptionQuery
|
|
2852
|
-
});
|
|
2853
|
-
var couponRedemptionListIntegration = createListIntegration({
|
|
2854
|
-
key: "couponRedemptions",
|
|
2855
|
-
fields: couponRedemptionQuery
|
|
2856
|
-
});
|
|
2857
|
-
var couponRedemptionDeleteIntegration = createDeleteIntegration(ENTITY2);
|
|
2858
|
-
|
|
2859
2847
|
// src/services/subscription/types/coupon.type.ts
|
|
2860
|
-
var
|
|
2848
|
+
var ENTITY2 = "coupon";
|
|
2861
2849
|
var couponIntegration = createStandardEntityIntegration({
|
|
2862
|
-
key:
|
|
2850
|
+
key: ENTITY2,
|
|
2863
2851
|
fields: couponQuery
|
|
2864
2852
|
});
|
|
2865
2853
|
var couponListIntegration = createListIntegration({
|
|
2866
2854
|
key: "coupons",
|
|
2867
2855
|
fields: couponQuery
|
|
2868
2856
|
});
|
|
2869
|
-
var couponDeleteIntegration = createDeleteIntegration(
|
|
2857
|
+
var couponDeleteIntegration = createDeleteIntegration(ENTITY2);
|
|
2858
|
+
|
|
2859
|
+
// src/services/subscription/types/coupon-redemption.type.ts
|
|
2860
|
+
var ENTITY3 = "couponRedemption";
|
|
2861
|
+
var couponRedemptionIntegration = createStandardEntityIntegration({
|
|
2862
|
+
key: ENTITY3,
|
|
2863
|
+
fields: couponRedemptionQuery,
|
|
2864
|
+
nested: {
|
|
2865
|
+
...couponIntegration.get.nestedFields
|
|
2866
|
+
}
|
|
2867
|
+
});
|
|
2868
|
+
var couponRedemptionListIntegration = createListIntegration({
|
|
2869
|
+
key: "couponRedemptions",
|
|
2870
|
+
fields: couponRedemptionQuery,
|
|
2871
|
+
nested: {
|
|
2872
|
+
...couponIntegration.get.nestedFields
|
|
2873
|
+
}
|
|
2874
|
+
});
|
|
2875
|
+
var couponRedemptionDeleteIntegration = createDeleteIntegration(ENTITY3);
|
|
2870
2876
|
|
|
2871
2877
|
// src/services/subscription/types/credit-plan.type.ts
|
|
2872
2878
|
var ENTITY4 = "creditPlan";
|