Skip to content

Commit

Permalink
Api module library yotpo (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
seanspeaks authored Jan 19, 2023
2 parents c65cefb + 36ea883 commit 1247cd6
Show file tree
Hide file tree
Showing 14 changed files with 561 additions and 196 deletions.
71 changes: 0 additions & 71 deletions api-module-library/yotpo/api.js

This file was deleted.

90 changes: 0 additions & 90 deletions api-module-library/yotpo/api.test.js

This file was deleted.

5 changes: 5 additions & 0 deletions api-module-library/yotpo/api/UGCApi.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const { ApiKeyRequester } = require('@friggframework/module-plugin');
const { get } = require('@friggframework/assertions');

class UGCApi extends ApiKeyRequester {}
module.exports = { UGCApi };
16 changes: 16 additions & 0 deletions api-module-library/yotpo/api/api.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
const { get } = require('@friggframework/assertions');
const { appDeveloperApi } = require('./appDeveloperApi');
const { coreApi } = require('./coreApi');
const { loyaltyApi } = require('./loyaltyApi');
const { UGCApi } = require('./UGCApi');

class Api {
constructor(params) {
this.appDeveloperApi = new appDeveloperApi(params);
this.coreApi = new coreApi(params);
this.loyaltyApi = new loyaltyApi(params);
this.UGCApi = new UGCApi(params);
}
}

module.exports = { Api };
Loading

0 comments on commit 1247cd6

Please sign in to comment.