@shopify/shopify-app-remix 3.8.4 → 4.0.0

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.
Files changed (154) hide show
  1. package/README.md +2 -3
  2. package/dist/cjs/server/adapters/node/index.js +0 -2
  3. package/dist/cjs/server/adapters/node/index.js.map +1 -1
  4. package/dist/cjs/server/authenticate/admin/authenticate.js.map +1 -1
  5. package/dist/cjs/server/authenticate/admin/helpers/create-admin-api-context.js.map +1 -1
  6. package/dist/cjs/server/authenticate/admin/helpers/trigger-after-auth-hook.js.map +1 -1
  7. package/dist/cjs/server/authenticate/admin/scope/client/fetch-scopes-details.js.map +1 -1
  8. package/dist/cjs/server/authenticate/admin/scope/client/revoke-scopes.js.map +1 -1
  9. package/dist/cjs/server/authenticate/admin/scope/factory.js.map +1 -1
  10. package/dist/cjs/server/authenticate/admin/scope/query.js.map +1 -1
  11. package/dist/cjs/server/authenticate/admin/scope/request.js.map +1 -1
  12. package/dist/cjs/server/authenticate/admin/scope/revoke.js.map +1 -1
  13. package/dist/cjs/server/authenticate/admin/strategies/auth-code-flow.js.map +1 -1
  14. package/dist/cjs/server/authenticate/admin/strategies/merchant-custom-app.js.map +1 -1
  15. package/dist/cjs/server/authenticate/admin/strategies/token-exchange.js.map +1 -1
  16. package/dist/cjs/server/authenticate/flow/authenticate.js.map +1 -1
  17. package/dist/cjs/server/authenticate/fulfillment-service/authenticate.js.map +1 -1
  18. package/dist/cjs/server/authenticate/public/appProxy/authenticate.js.map +1 -1
  19. package/dist/cjs/server/authenticate/public/factory.js.map +1 -1
  20. package/dist/cjs/server/authenticate/webhooks/authenticate.js.map +1 -1
  21. package/dist/cjs/server/clients/admin/factory.js +0 -11
  22. package/dist/cjs/server/clients/admin/factory.js.map +1 -1
  23. package/dist/cjs/server/clients/admin/graphql.js +1 -2
  24. package/dist/cjs/server/clients/admin/graphql.js.map +1 -1
  25. package/dist/cjs/server/future/flags.js.map +1 -1
  26. package/dist/cjs/server/index.js +0 -8
  27. package/dist/cjs/server/index.js.map +1 -1
  28. package/dist/cjs/server/override-logger.js +2 -2
  29. package/dist/cjs/server/override-logger.js.map +1 -1
  30. package/dist/cjs/server/shopify-app.js +1 -2
  31. package/dist/cjs/server/shopify-app.js.map +1 -1
  32. package/dist/cjs/server/test-helpers/test-config.js.map +1 -1
  33. package/dist/cjs/server/types.js.map +1 -1
  34. package/dist/cjs/server/unauthenticated/admin/factory.js.map +1 -1
  35. package/dist/cjs/server/version.js +1 -1
  36. package/dist/cjs/server/version.js.map +1 -1
  37. package/dist/esm/server/adapters/node/index.mjs +1 -3
  38. package/dist/esm/server/adapters/node/index.mjs.map +1 -1
  39. package/dist/esm/server/authenticate/admin/authenticate.mjs.map +1 -1
  40. package/dist/esm/server/authenticate/admin/helpers/create-admin-api-context.mjs.map +1 -1
  41. package/dist/esm/server/authenticate/admin/helpers/trigger-after-auth-hook.mjs.map +1 -1
  42. package/dist/esm/server/authenticate/admin/scope/client/fetch-scopes-details.mjs.map +1 -1
  43. package/dist/esm/server/authenticate/admin/scope/client/revoke-scopes.mjs.map +1 -1
  44. package/dist/esm/server/authenticate/admin/scope/factory.mjs.map +1 -1
  45. package/dist/esm/server/authenticate/admin/scope/query.mjs.map +1 -1
  46. package/dist/esm/server/authenticate/admin/scope/request.mjs.map +1 -1
  47. package/dist/esm/server/authenticate/admin/scope/revoke.mjs.map +1 -1
  48. package/dist/esm/server/authenticate/admin/strategies/auth-code-flow.mjs.map +1 -1
  49. package/dist/esm/server/authenticate/admin/strategies/merchant-custom-app.mjs.map +1 -1
  50. package/dist/esm/server/authenticate/admin/strategies/token-exchange.mjs.map +1 -1
  51. package/dist/esm/server/authenticate/flow/authenticate.mjs.map +1 -1
  52. package/dist/esm/server/authenticate/fulfillment-service/authenticate.mjs.map +1 -1
  53. package/dist/esm/server/authenticate/public/appProxy/authenticate.mjs.map +1 -1
  54. package/dist/esm/server/authenticate/public/factory.mjs.map +1 -1
  55. package/dist/esm/server/authenticate/webhooks/authenticate.mjs.map +1 -1
  56. package/dist/esm/server/clients/admin/factory.mjs +0 -11
  57. package/dist/esm/server/clients/admin/factory.mjs.map +1 -1
  58. package/dist/esm/server/clients/admin/graphql.mjs +1 -2
  59. package/dist/esm/server/clients/admin/graphql.mjs.map +1 -1
  60. package/dist/esm/server/future/flags.mjs.map +1 -1
  61. package/dist/esm/server/index.mjs +1 -1
  62. package/dist/esm/server/index.mjs.map +1 -1
  63. package/dist/esm/server/override-logger.mjs +2 -2
  64. package/dist/esm/server/override-logger.mjs.map +1 -1
  65. package/dist/esm/server/shopify-app.mjs +2 -3
  66. package/dist/esm/server/shopify-app.mjs.map +1 -1
  67. package/dist/esm/server/test-helpers/test-config.mjs.map +1 -1
  68. package/dist/esm/server/types.mjs.map +1 -1
  69. package/dist/esm/server/unauthenticated/admin/factory.mjs.map +1 -1
  70. package/dist/esm/server/version.mjs +1 -1
  71. package/dist/esm/server/version.mjs.map +1 -1
  72. package/dist/ts/server/authenticate/admin/authenticate.admin.doc.d.ts.map +1 -1
  73. package/dist/ts/server/authenticate/admin/authenticate.d.ts +2 -2
  74. package/dist/ts/server/authenticate/admin/authenticate.d.ts.map +1 -1
  75. package/dist/ts/server/authenticate/admin/billing/types.d.ts +1 -2
  76. package/dist/ts/server/authenticate/admin/billing/types.d.ts.map +1 -1
  77. package/dist/ts/server/authenticate/admin/helpers/create-admin-api-context.d.ts +2 -3
  78. package/dist/ts/server/authenticate/admin/helpers/create-admin-api-context.d.ts.map +1 -1
  79. package/dist/ts/server/authenticate/admin/helpers/trigger-after-auth-hook.d.ts +2 -3
  80. package/dist/ts/server/authenticate/admin/helpers/trigger-after-auth-hook.d.ts.map +1 -1
  81. package/dist/ts/server/authenticate/admin/scope/client/fetch-scopes-details.d.ts +1 -2
  82. package/dist/ts/server/authenticate/admin/scope/client/fetch-scopes-details.d.ts.map +1 -1
  83. package/dist/ts/server/authenticate/admin/scope/client/revoke-scopes.d.ts +1 -2
  84. package/dist/ts/server/authenticate/admin/scope/client/revoke-scopes.d.ts.map +1 -1
  85. package/dist/ts/server/authenticate/admin/scope/factory.d.ts +1 -2
  86. package/dist/ts/server/authenticate/admin/scope/factory.d.ts.map +1 -1
  87. package/dist/ts/server/authenticate/admin/scope/query.d.ts +1 -2
  88. package/dist/ts/server/authenticate/admin/scope/query.d.ts.map +1 -1
  89. package/dist/ts/server/authenticate/admin/scope/request.d.ts +1 -2
  90. package/dist/ts/server/authenticate/admin/scope/request.d.ts.map +1 -1
  91. package/dist/ts/server/authenticate/admin/scope/revoke.d.ts +1 -2
  92. package/dist/ts/server/authenticate/admin/scope/revoke.d.ts.map +1 -1
  93. package/dist/ts/server/authenticate/admin/strategies/auth-code-flow.d.ts +3 -3
  94. package/dist/ts/server/authenticate/admin/strategies/auth-code-flow.d.ts.map +1 -1
  95. package/dist/ts/server/authenticate/admin/strategies/merchant-custom-app.d.ts +2 -2
  96. package/dist/ts/server/authenticate/admin/strategies/merchant-custom-app.d.ts.map +1 -1
  97. package/dist/ts/server/authenticate/admin/strategies/token-exchange.d.ts +2 -2
  98. package/dist/ts/server/authenticate/admin/strategies/token-exchange.d.ts.map +1 -1
  99. package/dist/ts/server/authenticate/admin/types.d.ts +9 -9
  100. package/dist/ts/server/authenticate/admin/types.d.ts.map +1 -1
  101. package/dist/ts/server/authenticate/flow/authenticate.d.ts +1 -3
  102. package/dist/ts/server/authenticate/flow/authenticate.d.ts.map +1 -1
  103. package/dist/ts/server/authenticate/flow/types.d.ts +4 -5
  104. package/dist/ts/server/authenticate/flow/types.d.ts.map +1 -1
  105. package/dist/ts/server/authenticate/fulfillment-service/authenticate.d.ts +1 -3
  106. package/dist/ts/server/authenticate/fulfillment-service/authenticate.d.ts.map +1 -1
  107. package/dist/ts/server/authenticate/fulfillment-service/types.d.ts +4 -5
  108. package/dist/ts/server/authenticate/fulfillment-service/types.d.ts.map +1 -1
  109. package/dist/ts/server/authenticate/public/appProxy/authenticate.d.ts +1 -3
  110. package/dist/ts/server/authenticate/public/appProxy/authenticate.d.ts.map +1 -1
  111. package/dist/ts/server/authenticate/public/appProxy/types.d.ts +6 -7
  112. package/dist/ts/server/authenticate/public/appProxy/types.d.ts.map +1 -1
  113. package/dist/ts/server/authenticate/public/factory.d.ts +1 -3
  114. package/dist/ts/server/authenticate/public/factory.d.ts.map +1 -1
  115. package/dist/ts/server/authenticate/public/types.d.ts +2 -3
  116. package/dist/ts/server/authenticate/public/types.d.ts.map +1 -1
  117. package/dist/ts/server/authenticate/webhooks/authenticate.d.ts +1 -3
  118. package/dist/ts/server/authenticate/webhooks/authenticate.d.ts.map +1 -1
  119. package/dist/ts/server/authenticate/webhooks/types.d.ts +5 -6
  120. package/dist/ts/server/authenticate/webhooks/types.d.ts.map +1 -1
  121. package/dist/ts/server/clients/admin/factory.d.ts +3 -4
  122. package/dist/ts/server/clients/admin/factory.d.ts.map +1 -1
  123. package/dist/ts/server/clients/admin/graphql.d.ts.map +1 -1
  124. package/dist/ts/server/clients/admin/types.d.ts +2 -134
  125. package/dist/ts/server/clients/admin/types.d.ts.map +1 -1
  126. package/dist/ts/server/config-types.d.ts +14 -16
  127. package/dist/ts/server/config-types.d.ts.map +1 -1
  128. package/dist/ts/server/future/flags.d.ts +2 -22
  129. package/dist/ts/server/future/flags.d.ts.map +1 -1
  130. package/dist/ts/server/index.d.ts +1 -1
  131. package/dist/ts/server/index.d.ts.map +1 -1
  132. package/dist/ts/server/shopify-app.d.ts +1 -2
  133. package/dist/ts/server/shopify-app.d.ts.map +1 -1
  134. package/dist/ts/server/test-helpers/test-config.d.ts +2 -2
  135. package/dist/ts/server/test-helpers/test-config.d.ts.map +1 -1
  136. package/dist/ts/server/types-contexts.d.ts +17 -31
  137. package/dist/ts/server/types-contexts.d.ts.map +1 -1
  138. package/dist/ts/server/types.d.ts +13 -14
  139. package/dist/ts/server/types.d.ts.map +1 -1
  140. package/dist/ts/server/unauthenticated/admin/factory.d.ts +1 -3
  141. package/dist/ts/server/unauthenticated/admin/factory.d.ts.map +1 -1
  142. package/dist/ts/server/unauthenticated/admin/types.d.ts +5 -6
  143. package/dist/ts/server/unauthenticated/admin/types.d.ts.map +1 -1
  144. package/dist/ts/server/unauthenticated/types.d.ts +3 -5
  145. package/dist/ts/server/unauthenticated/types.d.ts.map +1 -1
  146. package/dist/ts/server/version.d.ts +1 -1
  147. package/dist/tsconfig.build.tsbuildinfo +1 -1
  148. package/package.json +13 -16
  149. package/dist/cjs/server/clients/admin/rest.js +0 -132
  150. package/dist/cjs/server/clients/admin/rest.js.map +0 -1
  151. package/dist/esm/server/clients/admin/rest.mjs +0 -130
  152. package/dist/esm/server/clients/admin/rest.mjs.map +0 -1
  153. package/dist/ts/server/clients/admin/rest.d.ts +0 -39
  154. package/dist/ts/server/clients/admin/rest.d.ts.map +0 -1
@@ -1,12 +1,11 @@
1
- import { Session, ShopifyRestResources } from '@shopify/shopify-api';
2
- import type { AppConfigArg } from '../../config-types';
1
+ import { Session } from '@shopify/shopify-api';
3
2
  import { BasicParams } from '../../types';
4
3
  import type { AdminApiContext } from './types';
5
- interface RestClientOptions {
4
+ interface AdminClientOptions {
6
5
  params: BasicParams;
7
6
  session: Session;
8
7
  handleClientError?: (error: any) => Promise<void>;
9
8
  }
10
- export declare function adminClientFactory<ConfigArg extends AppConfigArg, Resources extends ShopifyRestResources = ShopifyRestResources>({ params, handleClientError, session, }: RestClientOptions): AdminApiContext<ConfigArg, Resources>;
9
+ export declare function adminClientFactory({ params, handleClientError, session, }: AdminClientOptions): AdminApiContext;
11
10
  export {};
12
11
  //# sourceMappingURL=factory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../../src/server/clients/admin/factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAE,oBAAoB,EAAC,MAAM,sBAAsB,CAAC;AAEnE,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC;AAIxC,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,SAAS,CAAC;AAE7C,UAAU,iBAAiB;IACzB,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACnD;AAED,wBAAgB,kBAAkB,CAChC,SAAS,SAAS,YAAY,EAC9B,SAAS,SAAS,oBAAoB,GAAG,oBAAoB,EAC7D,EACA,MAAM,EACN,iBAAiB,EACjB,OAAO,GACR,EAAE,iBAAiB,GAAG,eAAe,CAAC,SAAS,EAAE,SAAS,CAAC,CAe3D"}
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../../src/server/clients/admin/factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,sBAAsB,CAAC;AAE7C,OAAO,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC;AAGxC,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,SAAS,CAAC;AAE7C,UAAU,kBAAkB;IAC1B,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACnD;AAED,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,iBAAiB,EACjB,OAAO,GACR,EAAE,kBAAkB,GAAG,eAAe,CAItC"}
@@ -1 +1 @@
1
- {"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../../../../src/server/clients/admin/graphql.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAC,aAAa,EAAC,MAAM,UAAU,CAAC;AAEvC,OAAO,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAM3C,wBAAgB,oBAAoB,CAAC,EACnC,MAAM,EACN,iBAAiB,EACjB,OAAO,GACR,EAAE,kBAAkB,GAAG,aAAa,CAAC,eAAe,CAAC,CAyBrD"}
1
+ {"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../../../../src/server/clients/admin/graphql.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAC,aAAa,EAAC,MAAM,UAAU,CAAC;AAEvC,OAAO,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAK3C,wBAAgB,oBAAoB,CAAC,EACnC,MAAM,EACN,iBAAiB,EACjB,OAAO,GACR,EAAE,kBAAkB,GAAG,aAAa,CAAC,eAAe,CAAC,CAyBrD"}
@@ -1,10 +1,7 @@
1
1
  import { AdminOperations } from '@shopify/admin-api-client';
2
- import { Session, ShopifyRestResources } from '@shopify/shopify-api';
3
- import type { AppConfigArg } from '../../config-types';
4
- import type { FeatureEnabled } from '../../future/flags';
2
+ import { Session } from '@shopify/shopify-api';
5
3
  import { BasicParams } from '../../types';
6
4
  import { GraphQLClient } from '../types';
7
- import type { RestClientWithResources } from './rest';
8
5
  export interface AdminClientOptions {
9
6
  params: BasicParams;
10
7
  session: Session;
@@ -15,8 +12,7 @@ export type HandleAdminClientError = (arg: {
15
12
  params: BasicParams;
16
13
  session: Session;
17
14
  }) => Promise<void>;
18
- export type AdminApiContext<ConfigArg extends AppConfigArg, Resources extends ShopifyRestResources = ShopifyRestResources> = FeatureEnabled<ConfigArg['future'], 'removeRest'> extends true ? AdminApiContextWithoutRest : AdminApiContextWithRest<Resources>;
19
- export interface AdminApiContextWithoutRest {
15
+ export interface AdminApiContext {
20
16
  /**
21
17
  * Methods for interacting with the Shopify Admin GraphQL API
22
18
  *
@@ -118,132 +114,4 @@ export interface AdminApiContextWithoutRest {
118
114
  */
119
115
  graphql: GraphQLClient<AdminOperations>;
120
116
  }
121
- export interface AdminApiContextWithRest<Resources extends ShopifyRestResources = ShopifyRestResources> extends AdminApiContextWithoutRest {
122
- /**
123
- * Methods for interacting with the Shopify Admin REST API
124
- *
125
- * @deprecated In a future major release REST will be removed from this package. Please see [all-in on graphql](https://www.shopify.com/ca/partners/blog/all-in-on-graphql).
126
- *
127
- * There are methods for interacting with individual REST resources. You can also make `GET`, `POST`, `PUT` and `DELETE` requests should the REST resources not meet your needs.
128
- *
129
- * {@link https://shopify.dev/docs/api/admin-rest}
130
- *
131
- * @example
132
- * <caption>Using REST resources.</caption>
133
- * <description>Getting the number of orders in a store using REST resources. Visit the [Admin REST API references](/docs/api/admin-rest) for examples on using each resource. </description>
134
- *
135
- * ```ts
136
- * // /app/routes/**\/*.ts
137
- * import { LoaderFunctionArgs, json } from "@remix-run/node";
138
- * import { authenticate } from "../shopify.server";
139
- *
140
- * export const loader = async ({ request }: LoaderFunctionArgs) => {
141
- * const {
142
- * admin,
143
- * session,
144
- * } = await authenticate.admin(request);
145
- *
146
- * return json(
147
- * admin.rest.resources.Order.count({ session }),
148
- * );
149
- * };
150
- * ```
151
- *
152
- * ```ts
153
- * // /app/shopify.server.ts
154
- * import { shopifyApp } from "@shopify/shopify-app-remix/server";
155
- * import { restResources } from "@shopify/shopify-api/rest/admin/2023-07";
156
- *
157
- * const shopify = shopifyApp({
158
- * restResources,
159
- * // ...etc
160
- * });
161
- * export default shopify;
162
- * export const authenticate = shopify.authenticate;
163
- * ```
164
- *
165
- * @example
166
- * <caption>Performing a GET request to the REST API.</caption>
167
- * <description>Use `admin.rest.get` to make custom requests to make a request to to the `customer/count` endpoint</description>
168
- *
169
- * ```ts
170
- * // /app/routes/**\/*.ts
171
- * import { LoaderFunctionArgs, json } from "@remix-run/node";
172
- * import { authenticate } from "../shopify.server";
173
- *
174
- * export const loader = async ({ request }: LoaderFunctionArgs) => {
175
- * const {
176
- * admin,
177
- * session,
178
- * } = await authenticate.admin(request);
179
- *
180
- * const response = await admin.rest.get({
181
- * path: "/customers/count.json",
182
- * });
183
- * const customers = await response.json();
184
- *
185
- * return json({ customers });
186
- * };
187
- * ```
188
- *
189
- * ```ts
190
- * // /app/shopify.server.ts
191
- * import { shopifyApp } from "@shopify/shopify-app-remix/server";
192
- * import { restResources } from "@shopify/shopify-api/rest/admin/2023-04";
193
- *
194
- * const shopify = shopifyApp({
195
- * restResources,
196
- * // ...etc
197
- * });
198
- * export default shopify;
199
- * export const authenticate = shopify.authenticate;
200
- * ```
201
- *
202
- * @example
203
- * <caption>Performing a POST request to the REST API.</caption>
204
- * <description>Use `admin.rest.post` to make custom requests to make a request to to the `customers.json` endpoint to send a welcome email</description>
205
- * ```ts
206
- * // /app/routes/**\/*.ts
207
- * import { LoaderFunctionArgs, json } from "@remix-run/node";
208
- * import { authenticate } from "../shopify.server";
209
- *
210
- * export const loader = async ({ request }: LoaderFunctionArgs) => {
211
- * const {
212
- * admin,
213
- * session,
214
- * } = await authenticate.admin(request);
215
- *
216
- * const response = admin.rest.post({
217
- * path: "customers/7392136888625/send_invite.json",
218
- * body: {
219
- * customer_invite: {
220
- * to: "new_test_email@shopify.com",
221
- * from: "j.limited@example.com",
222
- * bcc: ["j.limited@example.com"],
223
- * subject: "Welcome to my new shop",
224
- * custom_message: "My awesome new store",
225
- * },
226
- * },
227
- * });
228
- *
229
- * const customerInvite = await response.json();
230
- * return json({ customerInvite });
231
- * };
232
- * ```
233
- *
234
- * ```ts
235
- * // /app/shopify.server.ts
236
- * import { shopifyApp } from "@shopify/shopify-app-remix/server";
237
- * import { restResources } from "@shopify/shopify-api/rest/admin/2023-04";
238
- *
239
- * const shopify = shopifyApp({
240
- * restResources,
241
- * // ...etc
242
- * });
243
- * export default shopify;
244
- * export const authenticate = shopify.authenticate;
245
- * ```
246
- */
247
- rest: RestClientWithResources<Resources>;
248
- }
249
117
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/server/clients/admin/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4HG;IACH,IAAI,EAAE,uBAAuB,CAAC,SAAS,CAAC,CAAC;CAC1C"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/server/clients/admin/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAC,OAAO,EAAC,MAAM,sBAAsB,CAAC;AAE7C,OAAO,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC;AACxC,OAAO,EAAC,aAAa,EAAC,MAAM,UAAU,CAAC;AAEvC,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,iBAAiB,CAAC,EAAE,sBAAsB,CAAC;CAC5C;AAED,MAAM,MAAM,sBAAsB,GAAG,CAAC,GAAG,EAAE;IACzC,KAAK,EAAE,GAAG,CAAC;IACX,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;CAClB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAEpB,MAAM,WAAW,eAAe;IAC9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkGG;IACH,OAAO,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;CACzC"}
@@ -1,10 +1,10 @@
1
- import { ConfigParams as ApiConfigArg, ConfigInterface as ApiConfig, ShopifyRestResources, Session, ApiVersion, WebhookHandler } from '@shopify/shopify-api';
1
+ import { ConfigParams as ApiConfigArg, ConfigInterface as ApiConfig, Session, ApiVersion, WebhookHandler } from '@shopify/shopify-api';
2
2
  import { SessionStorage } from '@shopify/shopify-app-session-storage';
3
3
  import type { ApiFutureFlags, FutureFlagOptions, FutureFlags } from './future/flags';
4
4
  import type { AppDistribution } from './types';
5
5
  import type { AdminApiContext } from './clients';
6
6
  import { IdempotentPromiseHandler } from './authenticate/helpers/idempotent-promise-handler';
7
- export interface AppConfigArg<Resources extends ShopifyRestResources = ShopifyRestResources, Storage extends SessionStorage = SessionStorage, Future extends FutureFlagOptions = FutureFlagOptions> extends Omit<ApiConfigArg<Resources, ApiFutureFlags<Future>>, 'hostName' | 'hostScheme' | 'isEmbeddedApp' | 'apiVersion' | 'isCustomStoreApp' | 'future'> {
7
+ export interface AppConfigArg<Storage extends SessionStorage = SessionStorage, Future extends FutureFlagOptions = FutureFlagOptions> extends Omit<ApiConfigArg<ApiFutureFlags<Future>>, 'hostName' | 'hostScheme' | 'isEmbeddedApp' | 'apiVersion' | 'isCustomStoreApp' | 'future'> {
8
8
  /**
9
9
  * The URL your app is running on.
10
10
  *
@@ -143,7 +143,7 @@ export interface AppConfigArg<Resources extends ShopifyRestResources = ShopifyRe
143
143
  * });
144
144
  * ```
145
145
  */
146
- hooks?: HooksConfig<AppConfigArg<Resources, Storage, Future>, Resources>;
146
+ hooks?: HooksConfig;
147
147
  /**
148
148
  * Does your app render embedded inside the Shopify Admin or on its own.
149
149
  *
@@ -167,20 +167,18 @@ export interface AppConfigArg<Resources extends ShopifyRestResources = ShopifyRe
167
167
  *
168
168
  * {@link https://shopify.dev/docs/api/}
169
169
  *
170
- * @defaultValue `LATEST_API_VERSION` from `@shopify/shopify-app-remix`
171
- *
172
170
  * @example
173
- * <caption>Using the latest API Version (Recommended)</caption>
171
+ * <caption>Using a specific API Version</caption>
174
172
  * ```ts
175
- * import { LATEST_API_VERSION, shopifyApp } from "@shopify/shopify-app-remix/server";
173
+ * import { ApiVersion, shopifyApp } from "@shopify/shopify-app-remix/server";
176
174
  *
177
175
  * const shopify = shopifyApp({
178
176
  * // ...etc
179
- * apiVersion: LATEST_API_VERSION,
177
+ * apiVersion: ApiVersion.July25,
180
178
  * });
181
179
  * ```
182
180
  */
183
- apiVersion?: ApiVersion;
181
+ apiVersion: ApiVersion;
184
182
  /**
185
183
  * A path that Shopify can reserve for auth related endpoints.
186
184
  *
@@ -189,14 +187,14 @@ export interface AppConfigArg<Resources extends ShopifyRestResources = ShopifyRe
189
187
  * @default `"/auth"`
190
188
  *
191
189
  * @example
192
- * <caption>Using the latest API Version (Recommended)</caption>
190
+ * <caption>Using an authPathPrefix</caption>
193
191
  * ```ts
194
192
  * // /app/shopify.server.ts
195
- * import { LATEST_API_VERSION, shopifyApp } from "@shopify/shopify-app-remix/server";
193
+ * import { ApiVersion, shopifyApp } from "@shopify/shopify-app-remix/server";
196
194
  *
197
195
  * const shopify = shopifyApp({
198
196
  * // ...etc
199
- * apiVersion: LATEST_API_VERSION,
197
+ * authPathPrefix: "/auth",
200
198
  * });
201
199
  * export default shopify;
202
200
  * export const authenticate = shopify.authenticate;
@@ -240,7 +238,7 @@ export interface AuthConfig {
240
238
  loginPath: string;
241
239
  }
242
240
  export type WebhookConfig = Record<string, WebhookHandler | WebhookHandler[]>;
243
- interface HooksConfig<ConfigArg extends AppConfigArg = AppConfigArg, Resources extends ShopifyRestResources = ShopifyRestResources> {
241
+ interface HooksConfig {
244
242
  /**
245
243
  * A function to call after a merchant installs your app
246
244
  *
@@ -264,11 +262,11 @@ interface HooksConfig<ConfigArg extends AppConfigArg = AppConfigArg, Resources e
264
262
  * });
265
263
  * ```
266
264
  */
267
- afterAuth?: (options: AfterAuthOptions<ConfigArg, Resources>) => void | Promise<void>;
265
+ afterAuth?: (options: AfterAuthOptions) => void | Promise<void>;
268
266
  }
269
- export interface AfterAuthOptions<ConfigArg extends AppConfigArg, Resources extends ShopifyRestResources = ShopifyRestResources> {
267
+ export interface AfterAuthOptions {
270
268
  session: Session;
271
- admin: AdminApiContext<ConfigArg, Resources>;
269
+ admin: AdminApiContext;
272
270
  }
273
271
  export {};
274
272
  //# sourceMappingURL=config-types.d.ts.map
@@ -1 +1 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AAgB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACjE;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,eAAe,CAAC;CACxB"}
@@ -1,4 +1,4 @@
1
- import type { ConfigParams, Shopify, ShopifyRestResources } from '@shopify/shopify-api';
1
+ import type { ConfigParams, Shopify } from '@shopify/shopify-api';
2
2
  import { AppConfig } from '../config-types';
3
3
  export interface FutureFlags {
4
4
  /**
@@ -10,31 +10,11 @@ export interface FutureFlags {
10
10
  * @default false
11
11
  */
12
12
  unstable_newEmbeddedAuthStrategy?: boolean;
13
- /**
14
- * When enabled, methods for interacting with the admin REST API will not be returned.
15
- *
16
- * This affects:
17
- *
18
- * * `authenticate.admin(request)`
19
- * * `authenticate.webhook(request)`
20
- * * `authenticate.flow(request)`
21
- * * `authenticate.appProxy(request)`
22
- * * `authenticate.fulfillmentService(request)`
23
- * * `unauthenticated.admin(shop)`
24
- *
25
- * In a future release we will remove REST from the package completely.
26
- *
27
- * Please see: [https://www.shopify.com/ca/partners/blog/all-in-on-graphql](https://www.shopify.com/ca/partners/blog/all-in-on-graphql)
28
- *
29
- * @default false
30
- */
31
- removeRest?: boolean;
32
13
  }
33
14
  export interface ApiFutureFlags<_Future extends FutureFlagOptions> {
34
- lineItemBilling: true;
35
15
  unstable_managedPricingSupport: true;
36
16
  }
37
- export type ApiConfigWithFutureFlags<Future extends FutureFlagOptions> = ConfigParams<ShopifyRestResources, ApiFutureFlags<Future>>;
17
+ export type ApiConfigWithFutureFlags<Future extends FutureFlagOptions> = ConfigParams<ApiFutureFlags<Future>>;
38
18
  export type FutureFlagOptions = FutureFlags | undefined;
39
19
  export type FeatureEnabled<Future extends FutureFlagOptions, Flag extends keyof FutureFlags> = Future extends FutureFlags ? Future[Flag] extends true ? true : false : false;
40
20
  export declare function logDisabledFutureFlags(config: AppConfig, logger: Shopify['logger']): void;
@@ -1 +1 @@
1
- {"version":3,"file":"flags.d.ts","sourceRoot":"","sources":["../../../../src/server/future/flags.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,OAAO,EACP,oBAAoB,EACrB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAI1C,MAAM,WAAW,WAAW;IAC1B;;;;;;;OAOG;IACH,gCAAgC,CAAC,EAAE,OAAO,CAAC;IAE3C;;;;;;;;;;;;;;;;;OAiBG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAID,MAAM,WAAW,cAAc,CAAC,OAAO,SAAS,iBAAiB;IAE/D,eAAe,EAAE,IAAI,CAAC;IACtB,8BAA8B,EAAE,IAAI,CAAC;CACtC;AAED,MAAM,MAAM,wBAAwB,CAAC,MAAM,SAAS,iBAAiB,IACnE,YAAY,CAAC,oBAAoB,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;AAE7D,MAAM,MAAM,iBAAiB,GAAG,WAAW,GAAG,SAAS,CAAC;AAExD,MAAM,MAAM,cAAc,CACxB,MAAM,SAAS,iBAAiB,EAChC,IAAI,SAAS,MAAM,WAAW,IAC5B,MAAM,SAAS,WAAW,GAC1B,MAAM,CAAC,IAAI,CAAC,SAAS,IAAI,GACvB,IAAI,GACJ,KAAK,GACP,KAAK,CAAC;AAEV,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,OAAO,CAAC,QAAQ,CAAC,QAY1B"}
1
+ {"version":3,"file":"flags.d.ts","sourceRoot":"","sources":["../../../../src/server/future/flags.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,YAAY,EAAE,OAAO,EAAC,MAAM,sBAAsB,CAAC;AAEhE,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAI1C,MAAM,WAAW,WAAW;IAC1B;;;;;;;OAOG;IACH,gCAAgC,CAAC,EAAE,OAAO,CAAC;CAC5C;AAID,MAAM,WAAW,cAAc,CAAC,OAAO,SAAS,iBAAiB;IAC/D,8BAA8B,EAAE,IAAI,CAAC;CACtC;AAED,MAAM,MAAM,wBAAwB,CAAC,MAAM,SAAS,iBAAiB,IACnE,YAAY,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;AAEvC,MAAM,MAAM,iBAAiB,GAAG,WAAW,GAAG,SAAS,CAAC;AAExD,MAAM,MAAM,cAAc,CACxB,MAAM,SAAS,iBAAiB,EAChC,IAAI,SAAS,MAAM,WAAW,IAC5B,MAAM,SAAS,WAAW,GAC1B,MAAM,CAAC,IAAI,CAAC,SAAS,IAAI,GACvB,IAAI,GACJ,KAAK,GACP,KAAK,CAAC;AAEV,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,OAAO,CAAC,QAAQ,CAAC,QAY1B"}
@@ -1,5 +1,5 @@
1
1
  import '@shopify/shopify-api/adapters/web-api';
2
- export { LATEST_API_VERSION, RELEASE_CANDIDATE_API_VERSION, LogSeverity, DeliveryMethod, BillingInterval, BillingReplacementBehavior, ApiVersion, Session, } from '@shopify/shopify-api';
2
+ export { LogSeverity, DeliveryMethod, BillingInterval, BillingReplacementBehavior, ApiVersion, Session, } from '@shopify/shopify-api';
3
3
  export type { JwtPayload } from '@shopify/shopify-api';
4
4
  export type * from './types-contexts';
5
5
  export type { ShopifyApp, LoginError } from './types';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/index.ts"],"names":[],"mappings":"AAAA,OAAO,uCAAuC,CAAC;AAO/C,OAAO,EACL,kBAAkB,EAClB,6BAA6B,EAC7B,WAAW,EACX,cAAc,EACd,eAAe,EACf,0BAA0B,EAC1B,UAAU,EACV,OAAO,GACR,MAAM,sBAAsB,CAAC;AAE9B,YAAY,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAErD,mBAAmB,kBAAkB,CAAC;AACtC,YAAY,EAAC,UAAU,EAAE,UAAU,EAAC,MAAM,SAAS,CAAC;AACpD,OAAO,EAAC,cAAc,EAAE,eAAe,EAAC,MAAM,SAAS,CAAC;AACxD,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AACzC,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/index.ts"],"names":[],"mappings":"AAAA,OAAO,uCAAuC,CAAC;AAO/C,OAAO,EACL,WAAW,EACX,cAAc,EACd,eAAe,EACf,0BAA0B,EAC1B,UAAU,EACV,OAAO,GACR,MAAM,sBAAsB,CAAC;AAE9B,YAAY,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAErD,mBAAmB,kBAAkB,CAAC;AACtC,YAAY,EAAC,UAAU,EAAE,UAAU,EAAC,MAAM,SAAS,CAAC;AACpD,OAAO,EAAC,cAAc,EAAE,eAAe,EAAC,MAAM,SAAS,CAAC;AACxD,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AACzC,cAAc,UAAU,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import '@shopify/shopify-api/adapters/web-api';
2
- import { ShopifyRestResources } from '@shopify/shopify-api';
3
2
  import { SessionStorage } from '@shopify/shopify-app-session-storage';
4
3
  import { type AppConfigArg } from './config-types';
5
4
  import { type BasicParams, type ShopifyApp } from './types';
@@ -25,6 +24,6 @@ import { FutureFlagOptions } from './future/flags';
25
24
  * export default shopify;
26
25
  * ```
27
26
  */
28
- export declare function shopifyApp<Config extends AppConfigArg<Resources, Storage, Future>, Resources extends ShopifyRestResources, Storage extends SessionStorage, Future extends FutureFlagOptions = Config['future']>(appConfig: Readonly<Config>): ShopifyApp<Config>;
27
+ export declare function shopifyApp<Config extends AppConfigArg<Storage, Future>, Storage extends SessionStorage, Future extends FutureFlagOptions = Config['future']>(appConfig: Readonly<Config>): ShopifyApp<Config>;
29
28
  export declare function deriveApi(appConfig: AppConfigArg): BasicParams['api'];
30
29
  //# sourceMappingURL=shopify-app.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shopify-app.d.ts","sourceRoot":"","sources":["../../../src/server/shopify-app.ts"],"names":[],"mappings":"AAAA,OAAO,uCAAuC,CAAC;AAC/C,OAAO,EAIL,oBAAoB,EAErB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAC,cAAc,EAAC,MAAM,sCAAsC,CAAC;AAEpE,OAAO,EAAiB,KAAK,YAAY,EAAC,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAEL,KAAK,WAAW,EAChB,KAAK,UAAU,EAKhB,MAAM,SAAS,CAAC;AAiBjB,OAAO,EAAC,iBAAiB,EAAyB,MAAM,gBAAgB,CAAC;AAEzE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,UAAU,CACxB,MAAM,SAAS,YAAY,CAAC,SAAS,EAAE,OAAO,EAAE,MAAM,CAAC,EACvD,SAAS,SAAS,oBAAoB,EACtC,OAAO,SAAS,cAAc,EAC9B,MAAM,SAAS,iBAAiB,GAAG,MAAM,CAAC,QAAQ,CAAC,EACnD,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,UAAU,CAAC,MAAM,CAAC,CA6DjD;AAkBD,wBAAgB,SAAS,CAAC,SAAS,EAAE,YAAY,GAAG,WAAW,CAAC,KAAK,CAAC,CAwCrE"}
1
+ {"version":3,"file":"shopify-app.d.ts","sourceRoot":"","sources":["../../../src/server/shopify-app.ts"],"names":[],"mappings":"AAAA,OAAO,uCAAuC,CAAC;AAM/C,OAAO,EAAC,cAAc,EAAC,MAAM,sCAAsC,CAAC;AAEpE,OAAO,EAAiB,KAAK,YAAY,EAAC,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAEL,KAAK,WAAW,EAChB,KAAK,UAAU,EAKhB,MAAM,SAAS,CAAC;AAiBjB,OAAO,EAAC,iBAAiB,EAAyB,MAAM,gBAAgB,CAAC;AAEzE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,UAAU,CACxB,MAAM,SAAS,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,EAC5C,OAAO,SAAS,cAAc,EAC9B,MAAM,SAAS,iBAAiB,GAAG,MAAM,CAAC,QAAQ,CAAC,EACnD,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,UAAU,CAAC,MAAM,CAAC,CA0DjD;AAkBD,wBAAgB,SAAS,CAAC,SAAS,EAAE,YAAY,GAAG,WAAW,CAAC,KAAK,CAAC,CAuCrE"}
@@ -1,4 +1,4 @@
1
- import { LogSeverity, ShopifyRestResources } from '@shopify/shopify-api';
1
+ import { LogSeverity } from '@shopify/shopify-api';
2
2
  import { SessionStorage } from '@shopify/shopify-app-session-storage';
3
3
  import { MemorySessionStorage } from '@shopify/shopify-app-session-storage-memory';
4
4
  import type { AppConfigArg } from '../config-types';
@@ -24,7 +24,7 @@ type Modify<Type1, Type2> = {
24
24
  } & {
25
25
  [key in keyof Type1 as key extends keyof Type2 ? never : key]: Type1[key];
26
26
  };
27
- type TestOverrides = Partial<Omit<AppConfigArg<ShopifyRestResources, SessionStorage, FutureFlagOptions>, 'future'> & {
27
+ type TestOverrides = Partial<Omit<AppConfigArg<SessionStorage, FutureFlagOptions>, 'future'> & {
28
28
  future: Partial<FutureFlagOptions>;
29
29
  }>;
30
30
  export type TestOverridesArg = undefined | TestOverrides;
@@ -1 +1 @@
1
- {"version":3,"file":"test-config.d.ts","sourceRoot":"","sources":["../../../../src/server/test-helpers/test-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAE,oBAAoB,EAAC,MAAM,sBAAsB,CAAC;AACvE,OAAO,EAAC,cAAc,EAAC,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAC,oBAAoB,EAAC,MAAM,6CAA6C,CAAC;AAOjF,OAAO,KAAK,EAAC,YAAY,EAAC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QAAQ,CAAC,CAAC;CAChC,CAAC"}
@@ -1,38 +1,24 @@
1
1
  import type { AppConfigArg } from './config-types';
2
2
  import type { ShopifyApp } from './types';
3
- import type { AdminContext as IAdminContext, ScopesContext as IScopesContext } from './authenticate/admin/types';
4
- import type { ScopesDetail as IScopesDetail } from './authenticate/admin/scope/types';
5
- import type { UnauthenticatedAdminContext as IUnauthenticatedAdminContext } from './unauthenticated/admin/types';
6
- import type { UnauthenticatedStorefrontContext as IUnauthenticatedStorefrontContext } from './unauthenticated/storefront/types';
3
+ import type { AdminContext as IAdminContext } from './authenticate/admin/types';
7
4
  import type { WebhookContext as IWebhookContext } from './authenticate/webhooks/types';
8
- import type { FlowContext as IFlowContext } from './authenticate/flow/types';
9
- import type { FulfillmentServiceContext as IFulfillmentServiceContext } from './authenticate/fulfillment-service/types';
10
5
  import type { AppProxyContext as IAppProxyContext, AppProxyContextWithSession as IAppProxyContextWithSession } from './authenticate/public/appProxy/types';
11
- import type { CheckoutContext as ICheckoutContext } from './authenticate/public/checkout/types';
12
- import type { CustomerAccountContext as ICustomerAccountContext } from './authenticate/public/customer-account/types';
13
- import type { AdminApiContextWithRest, AdminApiContext as IAdminApiContext, StorefrontContext as IStorefrontContext } from './clients';
6
+ import type { AdminApiContext as IAdminApiContext, StorefrontContext as IStorefrontContext } from './clients';
7
+ export type { UnauthenticatedAdminContext } from './unauthenticated/admin/types';
8
+ export type { UnauthenticatedStorefrontContext } from './unauthenticated/storefront/types';
9
+ export type { FlowContext } from './authenticate/flow/types';
10
+ export type { FulfillmentServiceContext } from './authenticate/fulfillment-service/types';
11
+ export type { ScopesDetail } from './authenticate/admin/scope/types';
12
+ export type { AdminApiContext } from './clients';
13
+ export type { ScopesContext } from './authenticate/admin/types';
14
+ export type { CheckoutContext } from './authenticate/public/checkout/types';
15
+ export type { CustomerAccountContext } from './authenticate/public/customer-account/types';
16
+ export type { StorefrontContext as StorefrontApiContext } from './clients';
14
17
  type ShopifyConfig<App> = App extends ShopifyApp<infer Config extends AppConfigArg> ? Config : never;
15
- type ConfigComponents<Config> = Config extends AppConfigArg<infer Resources, infer Storage, infer Future> ? {
16
- resources: Resources;
17
- storage: Storage;
18
- future: Future;
19
- } : never;
20
18
  type DefaultApp = ShopifyApp<AppConfigArg>;
21
- export type UnauthenticatedAdminContext<App = DefaultApp> = IUnauthenticatedAdminContext<ShopifyConfig<App>, ConfigComponents<ShopifyConfig<App>>['resources']>;
22
- export type AdminContext<App = DefaultApp> = IAdminContext<ShopifyConfig<App>, ConfigComponents<ShopifyConfig<App>>['resources']>;
23
- export type ScopesContext<_App = DefaultApp> = IScopesContext;
24
- export type ScopesDetail = IScopesDetail;
25
- export type UnauthenticatedStorefrontContext<_App = DefaultApp> = IUnauthenticatedStorefrontContext;
26
- export type FlowContext<App = DefaultApp> = IFlowContext<ShopifyConfig<App>, ConfigComponents<ShopifyConfig<App>>['resources']>;
27
- export type FulfillmentServiceContext<App = DefaultApp> = IFulfillmentServiceContext<ShopifyConfig<App>, ConfigComponents<ShopifyConfig<App>>['resources']>;
28
- export type AppProxyContext<App = DefaultApp> = IAppProxyContext | IAppProxyContextWithSession<ShopifyConfig<App>>;
29
- export type CheckoutContext<_App = DefaultApp> = ICheckoutContext;
30
- export type CustomerAccountContext<_App = DefaultApp> = ICustomerAccountContext;
31
- export type WebhookContext<App = DefaultApp> = IWebhookContext<ShopifyConfig<App>, ConfigComponents<ShopifyConfig<App>>['resources'], string>;
32
- export type AdminApiContext<App = DefaultApp> = IAdminApiContext<ShopifyConfig<App>, ConfigComponents<ShopifyConfig<App>>['resources']>;
33
- export type AdminRestClient<App = DefaultApp> = AdminApiContextWithRest<ShopifyConfig<App>>['rest'];
34
- export type AdminGraphqlClient<App = DefaultApp> = AdminApiContext<App>['graphql'];
35
- export type StorefrontApiContext<_App = DefaultApp> = IStorefrontContext;
36
- export type StorefrontGraphqlClient<App = DefaultApp> = StorefrontApiContext<App>['graphql'];
37
- export {};
19
+ export type AdminContext<App = DefaultApp> = IAdminContext<ShopifyConfig<App>>;
20
+ export type AppProxyContext = IAppProxyContext | IAppProxyContextWithSession;
21
+ export type WebhookContext = IWebhookContext<string>;
22
+ export type AdminGraphqlClient = IAdminApiContext['graphql'];
23
+ export type StorefrontGraphqlClient = IStorefrontContext['graphql'];
38
24
  //# sourceMappingURL=types-contexts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types-contexts.d.ts","sourceRoot":"","sources":["../../../src/server/types-contexts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EACV,YAAY,IAAI,aAAa,EAC7B,aAAa,IAAI,cAAc,EAChC,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAC,YAAY,IAAI,aAAa,EAAC,MAAM,kCAAkC,CAAC;AACpF,OAAO,KAAK,EAAC,2BAA2B,IAAI,4BAA4B,EAAC,MAAM,+BAA+B,CAAC;AAC/G,OAAO,KAAK,EAAC,gCAAgC,IAAI,iCAAiC,EAAC,MAAM,oCAAoC,CAAC;AAC9H,OAAO,KAAK,EAAC,cAAc,IAAI,eAAe,EAAC,MAAM,+BAA+B,CAAC;AACrF,OAAO,KAAK,EAAC,WAAW,IAAI,YAAY,EAAC,MAAM,2BAA2B,CAAC;AAC3E,OAAO,KAAK,EAAC,yBAAyB,IAAI,0BAA0B,EAAC,MAAM,0CAA0C,CAAC;AACtH,OAAO,KAAK,EACV,eAAe,IAAI,gBAAgB,EACnC,0BAA0B,IAAI,2BAA2B,EAC1D,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,EAAC,eAAe,IAAI,gBAAgB,EAAC,MAAM,sCAAsC,CAAC;AAC9F,OAAO,KAAK,EAAC,sBAAsB,IAAI,uBAAuB,EAAC,MAAM,8CAA8C,CAAC;AACpH,OAAO,KAAK,EACV,uBAAuB,EACvB,eAAe,IAA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aAAa,CAAC,GAAG,CAAC,CAAC,CAAC;AAG/E,MAAM,MAAM,eAAe,GAAG,gBAAgB,GAAG,2BAA2B,CAAC;AAE7E,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;AAGrD,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,SAAS,CAAC,CAAC;AAE7D,MAAM,MAAM,uBAAuB,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { RegisterReturn, Shopify, ShopifyRestResources } from '@shopify/shopify-api';
1
+ import { RegisterReturn, Shopify } from '@shopify/shopify-api';
2
2
  import { SessionStorage } from '@shopify/shopify-app-session-storage';
3
3
  import type { AuthenticateAdmin } from './authenticate/admin/types';
4
4
  import type { AuthenticateFlow } from './authenticate/flow/types';
@@ -9,7 +9,7 @@ import type { AppConfig, AppConfigArg } from './config-types';
9
9
  import type { ApiConfigWithFutureFlags, ApiFutureFlags, FutureFlagOptions } from './future/flags';
10
10
  import type { Unauthenticated } from './unauthenticated/types';
11
11
  export interface BasicParams<Future extends FutureFlagOptions = FutureFlagOptions> {
12
- api: Shopify<ApiConfigWithFutureFlags<Future>, ShopifyRestResources, ApiFutureFlags<Future>>;
12
+ api: Shopify<ApiConfigWithFutureFlags<Future>, ApiFutureFlags<Future>>;
13
13
  config: AppConfig;
14
14
  logger: Shopify['logger'];
15
15
  }
@@ -28,7 +28,6 @@ export interface LoginError {
28
28
  }
29
29
  type Login = (request: Request) => Promise<LoginError | never>;
30
30
  type AddDocumentResponseHeaders = (request: Request, headers: Headers) => void;
31
- type RestResourcesType<Config extends AppConfigArg> = Config['restResources'] extends ShopifyRestResources ? Config['restResources'] : ShopifyRestResources;
32
31
  type SessionStorageType<Config extends AppConfigArg> = Config['sessionStorage'] extends SessionStorage ? Config['sessionStorage'] : SessionStorage;
33
32
  interface Authenticate<Config extends AppConfigArg> {
34
33
  /**
@@ -54,7 +53,7 @@ interface Authenticate<Config extends AppConfigArg> {
54
53
  * ```
55
54
  * ```ts
56
55
  * // /app/shopify.server.ts
57
- * import { LATEST_API_VERSION, shopifyApp } from "@shopify/shopify-app-remix/server";
56
+ * import { ApiVersion, shopifyApp } from "@shopify/shopify-app-remix/server";
58
57
  *
59
58
  * const shopify = shopifyApp({
60
59
  * // ...etc
@@ -63,7 +62,7 @@ interface Authenticate<Config extends AppConfigArg> {
63
62
  * export const authenticate = shopify.authenticate;
64
63
  * ```
65
64
  */
66
- admin: AuthenticateAdmin<Config, RestResourcesType<Config>>;
65
+ admin: AuthenticateAdmin<Config>;
67
66
  /**
68
67
  * Authenticate a Flow extension Request and get back an authenticated context, containing an admin context to access
69
68
  * the API, and the payload of the request.
@@ -90,7 +89,7 @@ interface Authenticate<Config extends AppConfigArg> {
90
89
  * ```
91
90
  * ```ts
92
91
  * // /app/shopify.server.ts
93
- * import { LATEST_API_VERSION, shopifyApp } from "@shopify/shopify-app-remix/server";
92
+ * import { ApiVersion, shopifyApp } from "@shopify/shopify-app-remix/server";
94
93
  *
95
94
  * const shopify = shopifyApp({
96
95
  * // ...etc
@@ -99,7 +98,7 @@ interface Authenticate<Config extends AppConfigArg> {
99
98
  * export const authenticate = shopify.authenticate;
100
99
  * ```
101
100
  */
102
- flow: AuthenticateFlow<Config, RestResourcesType<Config>>;
101
+ flow: AuthenticateFlow;
103
102
  /**
104
103
  * Authenticate a request from a fulfillment service and get back an authenticated context.
105
104
  *
@@ -120,7 +119,7 @@ interface Authenticate<Config extends AppConfigArg> {
120
119
  * }
121
120
  * ```
122
121
  * */
123
- fulfillmentService: AuthenticateFulfillmentService<Config, RestResourcesType<Config>>;
122
+ fulfillmentService: AuthenticateFulfillmentService;
124
123
  /**
125
124
  * Authenticate a public request and get back a session token.
126
125
  *
@@ -140,7 +139,7 @@ interface Authenticate<Config extends AppConfigArg> {
140
139
  * }
141
140
  * ```
142
141
  */
143
- public: AuthenticatePublic<Config>;
142
+ public: AuthenticatePublic;
144
143
  /**
145
144
  * Authenticate a Shopify webhook request, get back an authenticated admin context and details on the webhook request
146
145
  *
@@ -209,7 +208,7 @@ interface Authenticate<Config extends AppConfigArg> {
209
208
  * });
210
209
  * ```
211
210
  */
212
- webhook: AuthenticateWebhook<Config, RestResourcesType<Config>, string>;
211
+ webhook: AuthenticateWebhook<string>;
213
212
  }
214
213
  export interface ShopifyAppBase<Config extends AppConfigArg> {
215
214
  /**
@@ -322,7 +321,7 @@ export interface ShopifyAppBase<Config extends AppConfigArg> {
322
321
  * <description>Use the functions in `authenticate` to validate requests coming from Shopify.</description>
323
322
  * ```ts
324
323
  * // /app/shopify.server.ts
325
- * import { LATEST_API_VERSION, shopifyApp } from "@shopify/shopify-app-remix/server";
324
+ * import { ApiVersion, shopifyApp } from "@shopify/shopify-app-remix/server";
326
325
  *
327
326
  * const shopify = shopifyApp({
328
327
  * // ...etc
@@ -351,7 +350,7 @@ export interface ShopifyAppBase<Config extends AppConfigArg> {
351
350
  * <description>Create contexts for requests that don't come from Shopify.</description>
352
351
  * ```ts
353
352
  * // /app/shopify.server.ts
354
- * import { LATEST_API_VERSION, shopifyApp } from "@shopify/shopify-app-remix/server";
353
+ * import { ApiVersion, shopifyApp } from "@shopify/shopify-app-remix/server";
355
354
  *
356
355
  * const shopify = shopifyApp({
357
356
  * // ...etc
@@ -373,7 +372,7 @@ export interface ShopifyAppBase<Config extends AppConfigArg> {
373
372
  * }
374
373
  * ```
375
374
  */
376
- unauthenticated: Unauthenticated<Config, RestResourcesType<Config>>;
375
+ unauthenticated: Unauthenticated;
377
376
  }
378
377
  export interface ShopifyAppLogin {
379
378
  /**
@@ -388,7 +387,7 @@ export interface ShopifyAppLogin {
388
387
  * <description>Use `shopify.login` to create a login form, in a route that can handle GET and POST requests.</description>
389
388
  * ```ts
390
389
  * // /app/shopify.server.ts
391
- * import { LATEST_API_VERSION, shopifyApp } from "@shopify/shopify-app-remix/server";
390
+ * import { ApiVersion, shopifyApp } from "@shopify/shopify-app-remix/server";
392
391
  *
393
392
  * const shopify = shopifyApp({
394
393
  * // ...etc
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/server/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,OAAO,EACP,oBAAoB,EACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAC,cAAc,EAAC,MAAM,sCAAsC,CAAC;AAEpE,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,4BAA4B,CAAC;AAClE,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAC,8BAA8B,EAAC,MAAM,0CAA0C,CAAC;AACxF,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,6BAA6B,CAAC;AACpE,OAAO,KAAK,EACV,mBAAmB,EACnB,uBAAuB,EACxB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAC,SAAS,EAAE,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC5D,OAAO,KAAK,EACV,wBAAwB,EACxB,cAAc,EACd,iBAAiB,EAClB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAC;AAE7D,MAAM,WAAW,WAAW,CAC1B,MAAM,SAAS,iBAAiB,GAAG,iBAAiB;IAEpD,GAAG,EAAE,OAAO,CACV,wBAAwB,CAAC,MAAM,CAAC,EAChC,oBAAoB,EACpB,cAAc,CAAC,MAAM,CAAC,CACvB,CAAC;IACF,MAAM,EAAE,SAAS,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;CAC3B;AAID,oBAAY,eAAe;IACzB,QAAQ,cAAc;IACtB,cAAc,oBAAoB;IAClC,YAAY,kBAAkB;CAC/B;AAED,KAAK,gBAAgB,GAAG,CACtB,OAAO,EAAE,uBAAuB,KAC7B,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;AAEpC,oBAAY,cAAc;IACx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C,YAAY,GACvD,QAAQ,CAAC,MAAM,CAAC,GAChB,MAAM,CAAC,cAAc,CAAC,SAAS,eAAe,CAAC,cAAc,GAC3D,qBAAqB,CAAC,MAAM,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC,GACxD,MAAM,CAAC,cAAc,CAAC,SAAS,eAAe,CAAC,QAAQ,GACrD,qBAAqB,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,GAClD,qBAAqB,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC"}
@@ -1,6 +1,4 @@
1
- import { ShopifyRestResources } from '@shopify/shopify-api';
2
- import { AppConfigArg } from '../../config-types';
3
1
  import { BasicParams } from '../../types';
4
2
  import { UnauthenticatedAdminContext } from './types';
5
- export declare function unauthenticatedAdminContextFactory<ConfigArg extends AppConfigArg, Resources extends ShopifyRestResources>(params: BasicParams): (shop: string) => Promise<UnauthenticatedAdminContext<ConfigArg, Resources>>;
3
+ export declare function unauthenticatedAdminContextFactory(params: BasicParams): (shop: string) => Promise<UnauthenticatedAdminContext>;
6
4
  //# sourceMappingURL=factory.d.ts.map