@connect-plus-online/ogabai-integrations 0.0.31 → 0.0.33
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 +38 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +19 -3
- package/dist/index.d.ts +19 -3
- package/dist/index.esm.js +37 -3
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -198,7 +198,7 @@ var userSchema = {
|
|
|
198
198
|
`,
|
|
199
199
|
getUsers: (query) => `
|
|
200
200
|
query getUsers($user: UserInput, $userIds: [String], $limit: Int!, $skip: Int!) {
|
|
201
|
-
|
|
201
|
+
getUsers(user: $user, userIds: $userIds, limit: $limit, skip: $skip) {
|
|
202
202
|
${query}
|
|
203
203
|
}
|
|
204
204
|
}
|
|
@@ -285,7 +285,6 @@ var userQuery = [
|
|
|
285
285
|
"dob",
|
|
286
286
|
"email",
|
|
287
287
|
"firstName",
|
|
288
|
-
"isAdmin",
|
|
289
288
|
"lastName",
|
|
290
289
|
"phone",
|
|
291
290
|
"phoneVerified",
|
|
@@ -2142,6 +2141,41 @@ var createTransactionService = (client) => ({
|
|
|
2142
2141
|
}
|
|
2143
2142
|
});
|
|
2144
2143
|
|
|
2144
|
+
// src/services/subscription/schemas/paystack.schema.ts
|
|
2145
|
+
var paystackSchema = {
|
|
2146
|
+
paystackInitializePayment: (query) => `
|
|
2147
|
+
mutation paystackInitializePayment($userId: String!) {
|
|
2148
|
+
paystackInitializePayment(userId: $userId) {
|
|
2149
|
+
${query}
|
|
2150
|
+
}
|
|
2151
|
+
}
|
|
2152
|
+
`
|
|
2153
|
+
};
|
|
2154
|
+
|
|
2155
|
+
// src/services/subscription/types/paystack.ts
|
|
2156
|
+
var paystackInitializePaymentResponse = [
|
|
2157
|
+
"access_code",
|
|
2158
|
+
"authorization_url",
|
|
2159
|
+
"reference"
|
|
2160
|
+
];
|
|
2161
|
+
|
|
2162
|
+
// src/services/subscription/paystack.service.ts
|
|
2163
|
+
var createPaystackService = (client) => ({
|
|
2164
|
+
async paystackInitializePayment(input, fetchFields, option) {
|
|
2165
|
+
var _a, _b;
|
|
2166
|
+
const res = await client.request(
|
|
2167
|
+
paystackSchema.paystackInitializePayment(
|
|
2168
|
+
gqlQueryStringBuilder(
|
|
2169
|
+
(_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : paystackInitializePaymentResponse
|
|
2170
|
+
)
|
|
2171
|
+
),
|
|
2172
|
+
input,
|
|
2173
|
+
option
|
|
2174
|
+
);
|
|
2175
|
+
return (_b = res.data) == null ? void 0 : _b.paystackInitializePayment;
|
|
2176
|
+
}
|
|
2177
|
+
});
|
|
2178
|
+
|
|
2145
2179
|
exports.AuthenticationError = AuthenticationError;
|
|
2146
2180
|
exports.GraphQLClient = GraphQLClient;
|
|
2147
2181
|
exports.NetworkError = NetworkError;
|
|
@@ -2171,6 +2205,7 @@ exports.compose = compose;
|
|
|
2171
2205
|
exports.createAuthService = createAuthService;
|
|
2172
2206
|
exports.createOrderService = createOrderService;
|
|
2173
2207
|
exports.createPackageService = createPackageService;
|
|
2208
|
+
exports.createPaystackService = createPaystackService;
|
|
2174
2209
|
exports.createPriceService = createPriceService;
|
|
2175
2210
|
exports.createProductService = createProductService;
|
|
2176
2211
|
exports.createSaleService = createSaleService;
|
|
@@ -2229,6 +2264,7 @@ exports.getTransactionResponseNestedFields = getTransactionResponseNestedFields;
|
|
|
2229
2264
|
exports.getTransactionsResponse = getTransactionsResponse;
|
|
2230
2265
|
exports.getTransactionsResponseNestedFields = getTransactionsResponseNestedFields;
|
|
2231
2266
|
exports.orderQuery = orderQuery;
|
|
2267
|
+
exports.paystackInitializePaymentResponse = paystackInitializePaymentResponse;
|
|
2232
2268
|
exports.removePackageResponseFields = removePackageResponseFields;
|
|
2233
2269
|
exports.removePriceResponseFields = removePriceResponseFields;
|
|
2234
2270
|
exports.removeProductResponseFields = removeProductResponseFields;
|