@visa-check-r/integrations 0.0.112 → 0.0.113

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 CHANGED
@@ -4378,6 +4378,69 @@ var createPartnerLinkService = (client) => ({
4378
4378
  }
4379
4379
  });
4380
4380
 
4381
+ // src/services/help/index.ts
4382
+ var ARTICLE = "id title description content";
4383
+ var createHelpService = (client) => ({
4384
+ async listHelpArticles(option) {
4385
+ var _a, _b, _c;
4386
+ const res = await client.request(
4387
+ `query listHelpArticles { listHelpArticles { articles { ${ARTICLE} } } }`,
4388
+ {},
4389
+ option
4390
+ );
4391
+ return (_c = (_b = (_a = res.data) == null ? void 0 : _a.listHelpArticles) == null ? void 0 : _b.articles) != null ? _c : [];
4392
+ },
4393
+ async getHelpArticle(articleId, option) {
4394
+ var _a, _b;
4395
+ const res = await client.request(
4396
+ `query getHelpArticle($articleId: String!) { getHelpArticle(articleId: $articleId) { article { ${ARTICLE} } } }`,
4397
+ { articleId },
4398
+ option
4399
+ );
4400
+ return (_b = (_a = res.data) == null ? void 0 : _a.getHelpArticle) == null ? void 0 : _b.article;
4401
+ },
4402
+ async saveHelpArticle(input, option) {
4403
+ var _a, _b;
4404
+ const res = await client.request(
4405
+ `mutation saveHelpArticle($articleId: String, $title: String!, $description: String, $content: String!) {
4406
+ saveHelpArticle(articleId: $articleId, title: $title, description: $description, content: $content) { article { ${ARTICLE} } }
4407
+ }`,
4408
+ input,
4409
+ option
4410
+ );
4411
+ return (_b = (_a = res.data) == null ? void 0 : _a.saveHelpArticle) == null ? void 0 : _b.article;
4412
+ },
4413
+ async deleteHelpArticle(articleId, option) {
4414
+ var _a, _b;
4415
+ const res = await client.request(
4416
+ `mutation deleteHelpArticle($articleId: String!) { deleteHelpArticle(articleId: $articleId) { articleId } }`,
4417
+ { articleId },
4418
+ option
4419
+ );
4420
+ return (_b = (_a = res.data) == null ? void 0 : _a.deleteHelpArticle) == null ? void 0 : _b.articleId;
4421
+ },
4422
+ /** Ends every session of the signed-in user, including this one. */
4423
+ async signOutEverywhere(option) {
4424
+ var _a, _b;
4425
+ const res = await client.request(
4426
+ `mutation signOutEverywhere { signOutEverywhere { signedOut } }`,
4427
+ {},
4428
+ option
4429
+ );
4430
+ return Boolean((_b = (_a = res.data) == null ? void 0 : _a.signOutEverywhere) == null ? void 0 : _b.signedOut);
4431
+ },
4432
+ /** Clients only: closes the signed-in account after checking its password. */
4433
+ async deleteMyAccount(password, option) {
4434
+ var _a, _b;
4435
+ const res = await client.request(
4436
+ `mutation deleteMyAccount($password: String!) { deleteMyAccount(password: $password) { deleted } }`,
4437
+ { password },
4438
+ option
4439
+ );
4440
+ return Boolean((_b = (_a = res.data) == null ? void 0 : _a.deleteMyAccount) == null ? void 0 : _b.deleted);
4441
+ }
4442
+ });
4443
+
4381
4444
  exports.AuthenticationError = AuthenticationError;
4382
4445
  exports.GraphQLClient = GraphQLClient;
4383
4446
  exports.NetworkError = NetworkError;
@@ -4418,6 +4481,7 @@ exports.createCreditPlanService = createCreditPlanService;
4418
4481
  exports.createCreditTransactionService = createCreditTransactionService;
4419
4482
  exports.createCustomerObjectResponse = createCustomerObjectResponse;
4420
4483
  exports.createFlutterwaveService = createFlutterwaveService;
4484
+ exports.createHelpService = createHelpService;
4421
4485
  exports.createNotificationService = createNotificationService;
4422
4486
  exports.createPartnerLinkService = createPartnerLinkService;
4423
4487
  exports.createPaystackService = createPaystackService;