diff --git a/.pnp.cjs b/.pnp.cjs index c513d5c89..b67fce78f 100755 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -28,7 +28,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { [null, {\ "packageLocation": "./",\ "packageDependencies": [\ - ["@awell-health/extensions-core", "npm:0.1.5"],\ + ["@awell-health/extensions-core", "npm:0.1.6"],\ ["@dropbox/sign", "npm:1.1.3"],\ ["@graphql-codegen/cli", "virtual:6d1931a4340173b37cf492f77cb803dda2f92958adb6847175388be3c73eb24be6f6bfd25e0fc0b7ad8dba815a972ad5e9d1f18e67fb58466bb7c99205a9d42e#npm:3.2.2"],\ ["@graphql-codegen/typescript", "virtual:6d1931a4340173b37cf492f77cb803dda2f92958adb6847175388be3c73eb24be6f6bfd25e0fc0b7ad8dba815a972ad5e9d1f18e67fb58466bb7c99205a9d42e#npm:3.0.2"],\ @@ -145,7 +145,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageLocation": "./",\ "packageDependencies": [\ ["@awell-health/awell-extensions", "workspace:."],\ - ["@awell-health/extensions-core", "npm:0.1.5"],\ + ["@awell-health/extensions-core", "npm:0.1.6"],\ ["@dropbox/sign", "npm:1.1.3"],\ ["@graphql-codegen/cli", "virtual:6d1931a4340173b37cf492f77cb803dda2f92958adb6847175388be3c73eb24be6f6bfd25e0fc0b7ad8dba815a972ad5e9d1f18e67fb58466bb7c99205a9d42e#npm:3.2.2"],\ ["@graphql-codegen/typescript", "virtual:6d1931a4340173b37cf492f77cb803dda2f92958adb6847175388be3c73eb24be6f6bfd25e0fc0b7ad8dba815a972ad5e9d1f18e67fb58466bb7c99205a9d42e#npm:3.0.2"],\ @@ -198,10 +198,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }]\ ]],\ ["@awell-health/extensions-core", [\ - ["npm:0.1.5", {\ - "packageLocation": "./.yarn/cache/@awell-health-extensions-core-npm-0.1.5-0ba4d4a940-fef79ce2d3.zip/node_modules/@awell-health/extensions-core/",\ + ["npm:0.1.6", {\ + "packageLocation": "./.yarn/cache/@awell-health-extensions-core-npm-0.1.6-0555bf8f3e-6c89e9ffe8.zip/node_modules/@awell-health/extensions-core/",\ "packageDependencies": [\ - ["@awell-health/extensions-core", "npm:0.1.5"],\ + ["@awell-health/extensions-core", "npm:0.1.6"],\ ["axios", "npm:1.4.0"],\ ["date-fns", "npm:2.30.0"],\ ["libphonenumber-js", "npm:1.10.30"],\ diff --git a/.yarn/cache/@awell-health-extensions-core-npm-0.1.5-0ba4d4a940-fef79ce2d3.zip b/.yarn/cache/@awell-health-extensions-core-npm-0.1.6-0555bf8f3e-6c89e9ffe8.zip similarity index 88% rename from .yarn/cache/@awell-health-extensions-core-npm-0.1.5-0ba4d4a940-fef79ce2d3.zip rename to .yarn/cache/@awell-health-extensions-core-npm-0.1.6-0555bf8f3e-6c89e9ffe8.zip index 6462bfc1a..bb1a5e438 100644 Binary files a/.yarn/cache/@awell-health-extensions-core-npm-0.1.5-0ba4d4a940-fef79ce2d3.zip and b/.yarn/cache/@awell-health-extensions-core-npm-0.1.6-0555bf8f3e-6c89e9ffe8.zip differ diff --git a/extensions/elation/cache.ts b/extensions/elation/cache.ts new file mode 100644 index 000000000..4d569ae18 --- /dev/null +++ b/extensions/elation/cache.ts @@ -0,0 +1,3 @@ +import { cache } from '@awell-health/extensions-core' + +export const elationCacheService = new cache.InMemoryCache() diff --git a/extensions/elation/client.ts b/extensions/elation/client.ts index e1167577c..e56235f31 100644 --- a/extensions/elation/client.ts +++ b/extensions/elation/client.ts @@ -17,6 +17,7 @@ import { type SubscriptionRequest, } from './types/subscription' import { settingsSchema } from './validation/settings.zod' +import { elationCacheService } from './cache' export class ElationDataWrapper extends DataWrapper { public async getAppointment(id: number): Promise { @@ -126,6 +127,7 @@ export class ElationAPIClient extends APIClient { auth: new OAuthPassword({ auth_url: authUrl, request_config: requestConfig, + cacheService: elationCacheService, }), }) } diff --git a/package.json b/package.json index e53a8bb35..99fbac5fa 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "typescript": "4.9.5" }, "dependencies": { - "@awell-health/extensions-core": "0.1.5", + "@awell-health/extensions-core": "0.1.6", "@dropbox/sign": "^1.1.3", "@mailchimp/mailchimp_transactional": "^1.0.50", "@metriport/api": "^3.1.5", diff --git a/yarn.lock b/yarn.lock index 67865f087..5250bcba3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -57,7 +57,7 @@ __metadata: version: 0.0.0-use.local resolution: "@awell-health/awell-extensions@workspace:." dependencies: - "@awell-health/extensions-core": 0.1.5 + "@awell-health/extensions-core": 0.1.6 "@dropbox/sign": ^1.1.3 "@graphql-codegen/cli": ^3.2.2 "@graphql-codegen/typescript": ^3.0.2 @@ -108,15 +108,15 @@ __metadata: languageName: unknown linkType: soft -"@awell-health/extensions-core@npm:0.1.5": - version: 0.1.5 - resolution: "@awell-health/extensions-core@npm:0.1.5" +"@awell-health/extensions-core@npm:0.1.6": + version: 0.1.6 + resolution: "@awell-health/extensions-core@npm:0.1.6" dependencies: axios: ^1.4.0 date-fns: ^2.30.0 libphonenumber-js: ^1.10.30 zod: ^3.21.4 - checksum: fef79ce2d39874ed3b7e68b2a143a0a75729b0667048c1664b31c52f2736605fde525b3f29ac3f6cafcc7b8d35efff8b1f6bd64322e1a63699a7f37fc2d5c3b8 + checksum: 6c89e9ffe85a9b4048218f9c28935a9aa1cf4e97a5030cc68fb4c4464751d024e2c43fdb4e776b8d3949e532d92f361eb09474c5c0e60e35302d9fc5a9f20c6e languageName: node linkType: hard