@shopify/shopify-app-remix 3.8.5 → 4.0.1

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 (159) hide show
  1. package/README.md +2 -3
  2. package/dist/cjs/react/components/AppProvider/AppProvider.js +15 -0
  3. package/dist/cjs/react/components/AppProvider/AppProvider.js.map +1 -1
  4. package/dist/cjs/server/adapters/node/index.js +0 -2
  5. package/dist/cjs/server/adapters/node/index.js.map +1 -1
  6. package/dist/cjs/server/authenticate/admin/authenticate.js.map +1 -1
  7. package/dist/cjs/server/authenticate/admin/helpers/create-admin-api-context.js.map +1 -1
  8. package/dist/cjs/server/authenticate/admin/helpers/trigger-after-auth-hook.js.map +1 -1
  9. package/dist/cjs/server/authenticate/admin/scope/client/fetch-scopes-details.js.map +1 -1
  10. package/dist/cjs/server/authenticate/admin/scope/client/revoke-scopes.js.map +1 -1
  11. package/dist/cjs/server/authenticate/admin/scope/factory.js.map +1 -1
  12. package/dist/cjs/server/authenticate/admin/scope/query.js.map +1 -1
  13. package/dist/cjs/server/authenticate/admin/scope/request.js.map +1 -1
  14. package/dist/cjs/server/authenticate/admin/scope/revoke.js.map +1 -1
  15. package/dist/cjs/server/authenticate/admin/strategies/auth-code-flow.js.map +1 -1
  16. package/dist/cjs/server/authenticate/admin/strategies/merchant-custom-app.js.map +1 -1
  17. package/dist/cjs/server/authenticate/admin/strategies/token-exchange.js.map +1 -1
  18. package/dist/cjs/server/authenticate/flow/authenticate.js.map +1 -1
  19. package/dist/cjs/server/authenticate/fulfillment-service/authenticate.js.map +1 -1
  20. package/dist/cjs/server/authenticate/public/appProxy/authenticate.js.map +1 -1
  21. package/dist/cjs/server/authenticate/public/factory.js.map +1 -1
  22. package/dist/cjs/server/authenticate/webhooks/authenticate.js.map +1 -1
  23. package/dist/cjs/server/clients/admin/factory.js +0 -11
  24. package/dist/cjs/server/clients/admin/factory.js.map +1 -1
  25. package/dist/cjs/server/clients/admin/graphql.js +1 -2
  26. package/dist/cjs/server/clients/admin/graphql.js.map +1 -1
  27. package/dist/cjs/server/future/flags.js.map +1 -1
  28. package/dist/cjs/server/index.js +0 -8
  29. package/dist/cjs/server/index.js.map +1 -1
  30. package/dist/cjs/server/override-logger.js +2 -2
  31. package/dist/cjs/server/override-logger.js.map +1 -1
  32. package/dist/cjs/server/shopify-app.js +1 -2
  33. package/dist/cjs/server/shopify-app.js.map +1 -1
  34. package/dist/cjs/server/test-helpers/test-config.js.map +1 -1
  35. package/dist/cjs/server/types.js.map +1 -1
  36. package/dist/cjs/server/unauthenticated/admin/factory.js.map +1 -1
  37. package/dist/cjs/server/version.js +1 -1
  38. package/dist/cjs/server/version.js.map +1 -1
  39. package/dist/esm/react/components/AppProvider/AppProvider.mjs +15 -0
  40. package/dist/esm/react/components/AppProvider/AppProvider.mjs.map +1 -1
  41. package/dist/esm/server/adapters/node/index.mjs +1 -3
  42. package/dist/esm/server/adapters/node/index.mjs.map +1 -1
  43. package/dist/esm/server/authenticate/admin/authenticate.mjs.map +1 -1
  44. package/dist/esm/server/authenticate/admin/helpers/create-admin-api-context.mjs.map +1 -1
  45. package/dist/esm/server/authenticate/admin/helpers/trigger-after-auth-hook.mjs.map +1 -1
  46. package/dist/esm/server/authenticate/admin/scope/client/fetch-scopes-details.mjs.map +1 -1
  47. package/dist/esm/server/authenticate/admin/scope/client/revoke-scopes.mjs.map +1 -1
  48. package/dist/esm/server/authenticate/admin/scope/factory.mjs.map +1 -1
  49. package/dist/esm/server/authenticate/admin/scope/query.mjs.map +1 -1
  50. package/dist/esm/server/authenticate/admin/scope/request.mjs.map +1 -1
  51. package/dist/esm/server/authenticate/admin/scope/revoke.mjs.map +1 -1
  52. package/dist/esm/server/authenticate/admin/strategies/auth-code-flow.mjs.map +1 -1
  53. package/dist/esm/server/authenticate/admin/strategies/merchant-custom-app.mjs.map +1 -1
  54. package/dist/esm/server/authenticate/admin/strategies/token-exchange.mjs.map +1 -1
  55. package/dist/esm/server/authenticate/flow/authenticate.mjs.map +1 -1
  56. package/dist/esm/server/authenticate/fulfillment-service/authenticate.mjs.map +1 -1
  57. package/dist/esm/server/authenticate/public/appProxy/authenticate.mjs.map +1 -1
  58. package/dist/esm/server/authenticate/public/factory.mjs.map +1 -1
  59. package/dist/esm/server/authenticate/webhooks/authenticate.mjs.map +1 -1
  60. package/dist/esm/server/clients/admin/factory.mjs +0 -11
  61. package/dist/esm/server/clients/admin/factory.mjs.map +1 -1
  62. package/dist/esm/server/clients/admin/graphql.mjs +1 -2
  63. package/dist/esm/server/clients/admin/graphql.mjs.map +1 -1
  64. package/dist/esm/server/future/flags.mjs.map +1 -1
  65. package/dist/esm/server/index.mjs +1 -1
  66. package/dist/esm/server/index.mjs.map +1 -1
  67. package/dist/esm/server/override-logger.mjs +2 -2
  68. package/dist/esm/server/override-logger.mjs.map +1 -1
  69. package/dist/esm/server/shopify-app.mjs +2 -3
  70. package/dist/esm/server/shopify-app.mjs.map +1 -1
  71. package/dist/esm/server/test-helpers/test-config.mjs.map +1 -1
  72. package/dist/esm/server/types.mjs.map +1 -1
  73. package/dist/esm/server/unauthenticated/admin/factory.mjs.map +1 -1
  74. package/dist/esm/server/version.mjs +1 -1
  75. package/dist/esm/server/version.mjs.map +1 -1
  76. package/dist/ts/react/components/AppProvider/AppProvider.d.ts.map +1 -1
  77. package/dist/ts/server/authenticate/admin/authenticate.admin.doc.d.ts.map +1 -1
  78. package/dist/ts/server/authenticate/admin/authenticate.d.ts +2 -2
  79. package/dist/ts/server/authenticate/admin/authenticate.d.ts.map +1 -1
  80. package/dist/ts/server/authenticate/admin/billing/types.d.ts +1 -2
  81. package/dist/ts/server/authenticate/admin/billing/types.d.ts.map +1 -1
  82. package/dist/ts/server/authenticate/admin/helpers/create-admin-api-context.d.ts +2 -3
  83. package/dist/ts/server/authenticate/admin/helpers/create-admin-api-context.d.ts.map +1 -1
  84. package/dist/ts/server/authenticate/admin/helpers/trigger-after-auth-hook.d.ts +2 -3
  85. package/dist/ts/server/authenticate/admin/helpers/trigger-after-auth-hook.d.ts.map +1 -1
  86. package/dist/ts/server/authenticate/admin/scope/client/fetch-scopes-details.d.ts +1 -2
  87. package/dist/ts/server/authenticate/admin/scope/client/fetch-scopes-details.d.ts.map +1 -1
  88. package/dist/ts/server/authenticate/admin/scope/client/revoke-scopes.d.ts +1 -2
  89. package/dist/ts/server/authenticate/admin/scope/client/revoke-scopes.d.ts.map +1 -1
  90. package/dist/ts/server/authenticate/admin/scope/factory.d.ts +1 -2
  91. package/dist/ts/server/authenticate/admin/scope/factory.d.ts.map +1 -1
  92. package/dist/ts/server/authenticate/admin/scope/query.d.ts +1 -2
  93. package/dist/ts/server/authenticate/admin/scope/query.d.ts.map +1 -1
  94. package/dist/ts/server/authenticate/admin/scope/request.d.ts +1 -2
  95. package/dist/ts/server/authenticate/admin/scope/request.d.ts.map +1 -1
  96. package/dist/ts/server/authenticate/admin/scope/revoke.d.ts +1 -2
  97. package/dist/ts/server/authenticate/admin/scope/revoke.d.ts.map +1 -1
  98. package/dist/ts/server/authenticate/admin/strategies/auth-code-flow.d.ts +3 -3
  99. package/dist/ts/server/authenticate/admin/strategies/auth-code-flow.d.ts.map +1 -1
  100. package/dist/ts/server/authenticate/admin/strategies/merchant-custom-app.d.ts +2 -2
  101. package/dist/ts/server/authenticate/admin/strategies/merchant-custom-app.d.ts.map +1 -1
  102. package/dist/ts/server/authenticate/admin/strategies/token-exchange.d.ts +2 -2
  103. package/dist/ts/server/authenticate/admin/strategies/token-exchange.d.ts.map +1 -1
  104. package/dist/ts/server/authenticate/admin/types.d.ts +9 -9
  105. package/dist/ts/server/authenticate/admin/types.d.ts.map +1 -1
  106. package/dist/ts/server/authenticate/flow/authenticate.d.ts +1 -3
  107. package/dist/ts/server/authenticate/flow/authenticate.d.ts.map +1 -1
  108. package/dist/ts/server/authenticate/flow/types.d.ts +4 -5
  109. package/dist/ts/server/authenticate/flow/types.d.ts.map +1 -1
  110. package/dist/ts/server/authenticate/fulfillment-service/authenticate.d.ts +1 -3
  111. package/dist/ts/server/authenticate/fulfillment-service/authenticate.d.ts.map +1 -1
  112. package/dist/ts/server/authenticate/fulfillment-service/types.d.ts +4 -5
  113. package/dist/ts/server/authenticate/fulfillment-service/types.d.ts.map +1 -1
  114. package/dist/ts/server/authenticate/public/appProxy/authenticate.d.ts +1 -3
  115. package/dist/ts/server/authenticate/public/appProxy/authenticate.d.ts.map +1 -1
  116. package/dist/ts/server/authenticate/public/appProxy/types.d.ts +6 -7
  117. package/dist/ts/server/authenticate/public/appProxy/types.d.ts.map +1 -1
  118. package/dist/ts/server/authenticate/public/factory.d.ts +1 -3
  119. package/dist/ts/server/authenticate/public/factory.d.ts.map +1 -1
  120. package/dist/ts/server/authenticate/public/types.d.ts +2 -3
  121. package/dist/ts/server/authenticate/public/types.d.ts.map +1 -1
  122. package/dist/ts/server/authenticate/webhooks/authenticate.d.ts +1 -3
  123. package/dist/ts/server/authenticate/webhooks/authenticate.d.ts.map +1 -1
  124. package/dist/ts/server/authenticate/webhooks/types.d.ts +5 -6
  125. package/dist/ts/server/authenticate/webhooks/types.d.ts.map +1 -1
  126. package/dist/ts/server/clients/admin/factory.d.ts +3 -4
  127. package/dist/ts/server/clients/admin/factory.d.ts.map +1 -1
  128. package/dist/ts/server/clients/admin/graphql.d.ts.map +1 -1
  129. package/dist/ts/server/clients/admin/types.d.ts +2 -134
  130. package/dist/ts/server/clients/admin/types.d.ts.map +1 -1
  131. package/dist/ts/server/config-types.d.ts +14 -16
  132. package/dist/ts/server/config-types.d.ts.map +1 -1
  133. package/dist/ts/server/future/flags.d.ts +2 -22
  134. package/dist/ts/server/future/flags.d.ts.map +1 -1
  135. package/dist/ts/server/index.d.ts +1 -1
  136. package/dist/ts/server/index.d.ts.map +1 -1
  137. package/dist/ts/server/shopify-app.d.ts +1 -2
  138. package/dist/ts/server/shopify-app.d.ts.map +1 -1
  139. package/dist/ts/server/test-helpers/test-config.d.ts +2 -2
  140. package/dist/ts/server/test-helpers/test-config.d.ts.map +1 -1
  141. package/dist/ts/server/types-contexts.d.ts +17 -31
  142. package/dist/ts/server/types-contexts.d.ts.map +1 -1
  143. package/dist/ts/server/types.d.ts +13 -14
  144. package/dist/ts/server/types.d.ts.map +1 -1
  145. package/dist/ts/server/unauthenticated/admin/factory.d.ts +1 -3
  146. package/dist/ts/server/unauthenticated/admin/factory.d.ts.map +1 -1
  147. package/dist/ts/server/unauthenticated/admin/types.d.ts +5 -6
  148. package/dist/ts/server/unauthenticated/admin/types.d.ts.map +1 -1
  149. package/dist/ts/server/unauthenticated/types.d.ts +3 -5
  150. package/dist/ts/server/unauthenticated/types.d.ts.map +1 -1
  151. package/dist/ts/server/version.d.ts +1 -1
  152. package/dist/tsconfig.build.tsbuildinfo +1 -1
  153. package/package.json +13 -16
  154. package/dist/cjs/server/clients/admin/rest.js +0 -132
  155. package/dist/cjs/server/clients/admin/rest.js.map +0 -1
  156. package/dist/esm/server/clients/admin/rest.mjs +0 -130
  157. package/dist/esm/server/clients/admin/rest.mjs.map +0 -1
  158. package/dist/ts/server/clients/admin/rest.d.ts +0 -39
  159. package/dist/ts/server/clients/admin/rest.d.ts.map +0 -1
@@ -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 { AuthenticateAppProxy } from './types';
5
- export declare function authenticateAppProxyFactory<ConfigArg extends AppConfigArg, Resources extends ShopifyRestResources>(params: BasicParams): AuthenticateAppProxy<ConfigArg, Resources>;
3
+ export declare function authenticateAppProxyFactory(params: BasicParams): AuthenticateAppProxy;
6
4
  //# sourceMappingURL=authenticate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"authenticate.d.ts","sourceRoot":"","sources":["../../../../../../src/server/authenticate/public/appProxy/authenticate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAC,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAC,YAAY,EAAC,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAE3C,OAAO,EAGL,oBAAoB,EAErB,MAAM,SAAS,CAAC;AAEjB,wBAAgB,2BAA2B,CACzC,SAAS,SAAS,YAAY,EAC9B,SAAS,SAAS,oBAAoB,EACtC,MAAM,EAAE,WAAW,GAAG,oBAAoB,CAAC,SAAS,EAAE,SAAS,CAAC,CAgDjE"}
1
+ {"version":3,"file":"authenticate.d.ts","sourceRoot":"","sources":["../../../../../../src/server/authenticate/public/appProxy/authenticate.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAE3C,OAAO,EAGL,oBAAoB,EAErB,MAAM,SAAS,CAAC;AAEjB,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,WAAW,GAClB,oBAAoB,CA8CtB"}
@@ -1,7 +1,6 @@
1
- import { Session, ShopifyRestResources } from '@shopify/shopify-api';
2
- import { AppConfigArg } from '../../../config-types';
1
+ import { Session } from '@shopify/shopify-api';
3
2
  import { AdminApiContext, StorefrontContext } from '../../../clients';
4
- export type AuthenticateAppProxy<ConfigArg extends AppConfigArg, Resources extends ShopifyRestResources = ShopifyRestResources> = (request: Request) => Promise<AppProxyContext | AppProxyContextWithSession<ConfigArg, Resources>>;
3
+ export type AuthenticateAppProxy = (request: Request) => Promise<AppProxyContext | AppProxyContextWithSession>;
5
4
  interface Options {
6
5
  /**
7
6
  * Whether to use the shop's theme layout around the Liquid content.
@@ -90,7 +89,7 @@ export interface AppProxyContext extends Context {
90
89
  session: undefined;
91
90
  /**
92
91
  * No session is available for the shop that made this request.
93
- * Therefore no methods for interacting with the GraphQL / REST Admin APIs are available.
92
+ * Therefore no methods for interacting with the GraphQL Admin API are available.
94
93
  */
95
94
  admin: undefined;
96
95
  /**
@@ -99,7 +98,7 @@ export interface AppProxyContext extends Context {
99
98
  */
100
99
  storefront: undefined;
101
100
  }
102
- export interface AppProxyContextWithSession<ConfigArg extends AppConfigArg, Resources extends ShopifyRestResources = ShopifyRestResources> extends Context {
101
+ export interface AppProxyContextWithSession extends Context {
103
102
  /**
104
103
  * The session for the shop that made the request.
105
104
  *
@@ -130,7 +129,7 @@ export interface AppProxyContextWithSession<ConfigArg extends AppConfigArg, Reso
130
129
  */
131
130
  session: Session;
132
131
  /**
133
- * Methods for interacting with the GraphQL / REST Admin APIs for the store that made the request.
132
+ * Methods for interacting with the GraphQL Admin API for the store that made the request.
134
133
  *
135
134
  * @example
136
135
  * <caption>Interacting with the Admin API.</caption>
@@ -164,7 +163,7 @@ export interface AppProxyContextWithSession<ConfigArg extends AppConfigArg, Reso
164
163
  * }
165
164
  * ```
166
165
  */
167
- admin: AdminApiContext<ConfigArg, Resources>;
166
+ admin: AdminApiContext;
168
167
  /**
169
168
  * Method for interacting with the Shopify Storefront Graphql API for the store that made the request.
170
169
  *
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/server/authenticate/public/appProxy/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAE,oBAAoB,EAAC,MAAM,sBAAsB,CAAC;AAEnE,OAAO,EAAC,YAAY,EAAC,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAC,eAAe,EAAE,iBAAiB,EAAC,MAAM,kBAAkB,CAAC;AAEpE,MAAM,MAAM,oBAAoB,CAC9B,SAAS,SAAS,YAAY,EAC9B,SAAS,SAAS,oBAAoB,GAAG,oBAAoB,IAC3D,CACF,OAAO,EAAE,OAAO,KACb,OAAO,CACV,eAAe,GAAG,0BAA0B,CAAC,SAAS,EAAE,SAAS,CAAC,CACnE,CAAC;AAEF,UAAU,OAAO;IACf;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,MAAM,sBAAsB,GAAG,CACnC,IAAI,EAAE,MAAM,EACZ,cAAc,CAAC,EAAE,MAAM,GAAG,CAAC,YAAY,GAAG,OAAO,CAA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AO,CAAC,KAC/C,QAAQ,CAAC;AAEd,UAAU,OAAO;IACf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoEG;IACH,MAAM,EAAE,sBAAsB,CAAC;CAChC;AAED,MAAM,WAAW,eAAgB,SAAQ,OAAO;IAC9C;;;;OAIG;IACH,OAAO,EAAE,SAAS,CAAC;IAEnB;;;OAGG;IACH,KAAK,EAAE,SAAS,CAAC;IAEjB;;;OAGG;IACH,UAAU,EAAE,SAAS,CAAC;CACvB;AAED,MAAM,WAAW,0BAA2B,SAAQ,OAAO;IACzD;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkCG;IACH,KAAK,EAAE,eAAe,CAAC;IAEvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,UAAU,EAAE,iBAAiB,CAAC;CAC/B"}
@@ -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 { AuthenticatePublic } from './types';
5
- export declare function authenticatePublicFactory<ConfigArg extends AppConfigArg, Resources extends ShopifyRestResources>(params: BasicParams): AuthenticatePublic<ConfigArg>;
3
+ export declare function authenticatePublicFactory(params: BasicParams): AuthenticatePublic;
6
4
  //# sourceMappingURL=factory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../../src/server/authenticate/public/factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAC,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAC,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC;AAKxC,OAAO,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAG3C,wBAAgB,yBAAyB,CACvC,SAAS,SAAS,YAAY,EAC9B,SAAS,SAAS,oBAAoB,EACtC,MAAM,EAAE,WAAW,iCAkBpB"}
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../../src/server/authenticate/public/factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC;AAKxC,OAAO,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAG3C,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,WAAW,sBAe5D"}
@@ -1,9 +1,8 @@
1
- import type { AppConfigArg } from '../../config-types';
2
1
  import type { AuthenticateCheckout } from './checkout/types';
3
2
  import type { AuthenticateAppProxy } from './appProxy/types';
4
3
  import type { AuthenticateCustomerAccount } from './customer-account/types';
5
4
  import type { AuthenticatePOS } from './pos/types';
6
- export interface AuthenticatePublic<Config extends AppConfigArg> {
5
+ export interface AuthenticatePublic {
7
6
  /**
8
7
  * Authenticate a request from a checkout extension
9
8
  *
@@ -46,7 +45,7 @@ export interface AuthenticatePublic<Config extends AppConfigArg> {
46
45
  * };
47
46
  * ```
48
47
  */
49
- appProxy: AuthenticateAppProxy<Config>;
48
+ appProxy: AuthenticateAppProxy;
50
49
  /**
51
50
  * Authenticate a request from a customer account extension
52
51
  *
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/server/authenticate/public/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAErD,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAC,2BAA2B,EAAC,MAAM,0BAA0B,CAAC;AAC1E,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAOjD,MAAM,WAAW,kBAAkB,CAAC,MAAM,SAAS,YAAY;IAC7D;;;;;;;;;;;;;;;;;OAiBG;IACH,QAAQ,EAAE,oBAAoB,CAAC;IAE/B;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,EAAE,oBAAoB,CAAC,MAAM,CAAC,CAAC;IAEvC;;;;;;;;;;;;;;;;;OAiBG;IACH,eAAe,EAAE,2BAA2B,CAAC;IAE7C;;;;;;;;;;;;;;;;;OAiBG;IACH,GAAG,EAAE,eAAe,CAAC;CACtB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/server/authenticate/public/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAC,2BAA2B,EAAC,MAAM,0BAA0B,CAAC;AAC1E,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAOjD,MAAM,WAAW,kBAAkB;IACjC;;;;;;;;;;;;;;;;;OAiBG;IACH,QAAQ,EAAE,oBAAoB,CAAC;IAE/B;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,EAAE,oBAAoB,CAAC;IAE/B;;;;;;;;;;;;;;;;;OAiBG;IACH,eAAe,EAAE,2BAA2B,CAAC;IAE7C;;;;;;;;;;;;;;;;;OAiBG;IACH,GAAG,EAAE,eAAe,CAAC;CACtB"}
@@ -1,6 +1,4 @@
1
- import { ShopifyRestResources } from '@shopify/shopify-api';
2
- import { AppConfigArg } from '../../config-types';
3
1
  import type { BasicParams } from '../../types';
4
2
  import type { AuthenticateWebhook } from './types';
5
- export declare function authenticateWebhookFactory<ConfigArg extends AppConfigArg, Resources extends ShopifyRestResources, Topics extends string>(params: BasicParams): AuthenticateWebhook<ConfigArg, Resources, Topics>;
3
+ export declare function authenticateWebhookFactory<Topics extends string>(params: BasicParams): AuthenticateWebhook<Topics>;
6
4
  //# sourceMappingURL=authenticate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"authenticate.d.ts","sourceRoot":"","sources":["../../../../../src/server/authenticate/webhooks/authenticate.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EAErB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAC,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC;AAK7C,OAAO,KAAK,EACV,mBAAmB,EAGpB,MAAM,SAAS,CAAC;AAEjB,wBAAgB,0BAA0B,CACxC,SAAS,SAAS,YAAY,EAC9B,SAAS,SAAS,oBAAoB,EACtC,MAAM,SAAS,MAAM,EACrB,MAAM,EAAE,WAAW,GAAG,mBAAmB,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,CAAC,CAgExE"}
1
+ {"version":3,"file":"authenticate.d.ts","sourceRoot":"","sources":["../../../../../src/server/authenticate/webhooks/authenticate.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC;AAK7C,OAAO,KAAK,EACV,mBAAmB,EAGpB,MAAM,SAAS,CAAC;AAEjB,wBAAgB,0BAA0B,CAAC,MAAM,SAAS,MAAM,EAC9D,MAAM,EAAE,WAAW,GAClB,mBAAmB,CAAC,MAAM,CAAC,CAgE7B"}
@@ -1,5 +1,4 @@
1
- import { Session, ShopifyRestResources } from '@shopify/shopify-api';
2
- import { AppConfigArg } from '../../config-types';
1
+ import { Session } from '@shopify/shopify-api';
3
2
  import type { AdminApiContext } from '../../clients';
4
3
  export interface RegisterWebhooksOptions {
5
4
  /**
@@ -129,7 +128,7 @@ export interface WebhookContextWithoutSession<Topics = string | number | symbol>
129
128
  session: undefined;
130
129
  admin: undefined;
131
130
  }
132
- export interface WebhookContextWithSession<ConfigArg extends AppConfigArg, Resources extends ShopifyRestResources, Topics = string | number | symbol> extends Context<Topics> {
131
+ export interface WebhookContextWithSession<Topics = string | number | symbol> extends Context<Topics> {
133
132
  /**
134
133
  * A session with an offline token for the shop.
135
134
  *
@@ -201,9 +200,9 @@ export interface WebhookContextWithSession<ConfigArg extends AppConfigArg, Resou
201
200
  * }
202
201
  * ```
203
202
  */
204
- admin: AdminApiContext<ConfigArg, Resources>;
203
+ admin: AdminApiContext;
205
204
  }
206
- export type WebhookContext<ConfigArg extends AppConfigArg, Resources extends ShopifyRestResources, Topics = string | number | symbol> = WebhookContextWithoutSession<Topics> | WebhookContextWithSession<ConfigArg, Resources, Topics>;
207
- export type AuthenticateWebhook<ConfigArg extends AppConfigArg, Resources extends ShopifyRestResources, Topics = string | number | symbol> = (request: Request) => Promise<WebhookContext<ConfigArg, Resources, Topics>>;
205
+ export type WebhookContext<Topics = string | number | symbol> = WebhookContextWithoutSession<Topics> | WebhookContextWithSession<Topics>;
206
+ export type AuthenticateWebhook<Topics = string | number | symbol> = (request: Request) => Promise<WebhookContext<Topics>>;
208
207
  export {};
209
208
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/server/authenticate/webhooks/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAE,oBAAoB,EAAC,MAAM,sBAAsB,CAAC;AAEnE,OAAO,EAAC,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,eAAe,CAAC;AAEnD,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,UAAU,OAAO,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM;IACjD;;;;;;;;;;;;;;;;OAgBG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;;;;;;;;;;;;;;;;;;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AC;CACxB;AAED,MAAM,MAAM,cAAc,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,IACxD,4BAA4B,CAAC,MAAM,CAAC,GACpC,yBAAyB,CAAC,MAAM,CAAC,CAAC;AAEtC,MAAM,MAAM,mBAAmB,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,IAAI,CACnE,OAAO,EAAE,OAAO,KACb,OAAO,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC"}
@@ -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,eAAe,EAAC,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAC,OAAO,EAAE,oBAAoB,EAAC,MAAM,sBAAsB,CAAC;AAEnE,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAC,cA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;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 @@
1
- {"version":3,"file":"config-types.d.ts","sourceRoot":"","sources":["../../../src/server/config-types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,IAAI,YAAY,EAC5B,eAAe,IAAI,SAAS,EAC5B,oBAAoB,EACpB,OAAO,EACP,UAAU,EACV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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,MA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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/shop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B,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,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,iBAAiB,CAAC;AAEvD,QAAA,MAAM,WAAW;;;qBAGU,GAAG;;;;;;;;;CASpB,CAAC;AAEX,wBAAgB,UAAU,CACxB,SAAS,SAA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