@shopify/shopify-api 6.0.0-rc9 → 6.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 (134) hide show
  1. package/CHANGELOG.md +84 -70
  2. package/README.md +1 -0
  3. package/adapters/__e2etests__/test_apps/test-cf-worker-app.js +1 -1
  4. package/adapters/__e2etests__/test_apps/test-cf-worker-app.js.map +1 -1
  5. package/adapters/__e2etests__/test_apps/test-node-app.js +1 -1
  6. package/adapters/__e2etests__/test_apps/test-node-app.js.map +1 -1
  7. package/lib/auth/get-embedded-app-url.d.ts +2 -2
  8. package/lib/auth/get-embedded-app-url.d.ts.map +1 -1
  9. package/lib/auth/get-embedded-app-url.js +7 -7
  10. package/lib/auth/get-embedded-app-url.js.map +1 -1
  11. package/lib/auth/index.d.ts +1 -1
  12. package/lib/auth/index.d.ts.map +1 -1
  13. package/lib/auth/index.js +4 -4
  14. package/lib/auth/index.js.map +1 -1
  15. package/lib/auth/oauth/oauth.d.ts +2 -2
  16. package/lib/auth/oauth/oauth.d.ts.map +1 -1
  17. package/lib/auth/oauth/oauth.js +37 -47
  18. package/lib/auth/oauth/oauth.js.map +1 -1
  19. package/lib/auth/oauth/types.d.ts +1 -1
  20. package/lib/auth/oauth/types.d.ts.map +1 -1
  21. package/lib/base-types.d.ts +0 -1
  22. package/lib/base-types.d.ts.map +1 -1
  23. package/lib/billing/check.d.ts +1 -1
  24. package/lib/billing/check.d.ts.map +1 -1
  25. package/lib/billing/check.js +4 -4
  26. package/lib/billing/check.js.map +1 -1
  27. package/lib/billing/index.js +2 -2
  28. package/lib/billing/index.js.map +1 -1
  29. package/lib/billing/request.d.ts +1 -1
  30. package/lib/billing/request.d.ts.map +1 -1
  31. package/lib/billing/request.js +84 -25
  32. package/lib/billing/request.js.map +1 -1
  33. package/lib/billing/types.d.ts +7 -1
  34. package/lib/billing/types.d.ts.map +1 -1
  35. package/lib/clients/graphql/graphql_client.d.ts +2 -2
  36. package/lib/clients/graphql/graphql_client.d.ts.map +1 -1
  37. package/lib/clients/graphql/graphql_client.js +4 -4
  38. package/lib/clients/graphql/graphql_client.js.map +1 -1
  39. package/lib/clients/graphql/graphql_proxy.d.ts +1 -1
  40. package/lib/clients/graphql/graphql_proxy.d.ts.map +1 -1
  41. package/lib/clients/graphql/graphql_proxy.js +4 -4
  42. package/lib/clients/graphql/graphql_proxy.js.map +1 -1
  43. package/lib/clients/graphql/storefront_client.d.ts +2 -2
  44. package/lib/clients/graphql/storefront_client.d.ts.map +1 -1
  45. package/lib/clients/graphql/storefront_client.js +4 -4
  46. package/lib/clients/graphql/storefront_client.js.map +1 -1
  47. package/lib/clients/http_client/http_client.d.ts +1 -1
  48. package/lib/clients/http_client/http_client.d.ts.map +1 -1
  49. package/lib/clients/http_client/http_client.js +3 -3
  50. package/lib/clients/http_client/http_client.js.map +1 -1
  51. package/lib/clients/index.d.ts +2 -2
  52. package/lib/clients/index.d.ts.map +1 -1
  53. package/lib/clients/index.js +8 -8
  54. package/lib/clients/index.js.map +1 -1
  55. package/lib/clients/rest/rest_client.d.ts +2 -2
  56. package/lib/clients/rest/rest_client.d.ts.map +1 -1
  57. package/lib/clients/rest/rest_client.js +3 -3
  58. package/lib/clients/rest/rest_client.js.map +1 -1
  59. package/lib/config.d.ts.map +1 -1
  60. package/lib/config.js +1 -0
  61. package/lib/config.js.map +1 -1
  62. package/lib/error.d.ts +2 -0
  63. package/lib/error.d.ts.map +1 -1
  64. package/lib/error.js +9 -1
  65. package/lib/error.js.map +1 -1
  66. package/lib/index.d.ts.map +1 -1
  67. package/lib/index.js +1 -1
  68. package/lib/index.js.map +1 -1
  69. package/lib/logger/index.d.ts +3 -1
  70. package/lib/logger/index.d.ts.map +1 -1
  71. package/lib/logger/index.js +22 -6
  72. package/lib/logger/index.js.map +1 -1
  73. package/lib/logger/log.d.ts +1 -1
  74. package/lib/logger/log.d.ts.map +1 -1
  75. package/lib/logger/log.js +3 -3
  76. package/lib/logger/log.js.map +1 -1
  77. package/lib/session/decode-session-token.d.ts +1 -1
  78. package/lib/session/decode-session-token.d.ts.map +1 -1
  79. package/lib/session/decode-session-token.js +3 -3
  80. package/lib/session/decode-session-token.js.map +1 -1
  81. package/lib/session/index.js +3 -3
  82. package/lib/session/index.js.map +1 -1
  83. package/lib/session/session-utils.d.ts +3 -3
  84. package/lib/session/session-utils.d.ts.map +1 -1
  85. package/lib/session/session-utils.js +12 -12
  86. package/lib/session/session-utils.js.map +1 -1
  87. package/lib/session/session.d.ts +2 -2
  88. package/lib/session/session.d.ts.map +1 -1
  89. package/lib/session/session.js +2 -5
  90. package/lib/session/session.js.map +1 -1
  91. package/lib/setup-jest.d.ts.map +1 -1
  92. package/lib/setup-jest.js +11 -0
  93. package/lib/setup-jest.js.map +1 -1
  94. package/lib/types.d.ts +6 -3
  95. package/lib/types.d.ts.map +1 -1
  96. package/lib/types.js +5 -2
  97. package/lib/types.js.map +1 -1
  98. package/lib/utils/hmac-validator.d.ts +2 -2
  99. package/lib/utils/hmac-validator.d.ts.map +1 -1
  100. package/lib/utils/hmac-validator.js +6 -6
  101. package/lib/utils/hmac-validator.js.map +1 -1
  102. package/lib/utils/index.js +4 -4
  103. package/lib/utils/index.js.map +1 -1
  104. package/lib/utils/shop-validator.d.ts +2 -2
  105. package/lib/utils/shop-validator.d.ts.map +1 -1
  106. package/lib/utils/shop-validator.js +5 -5
  107. package/lib/utils/shop-validator.js.map +1 -1
  108. package/lib/utils/version-compatible.d.ts +1 -1
  109. package/lib/utils/version-compatible.d.ts.map +1 -1
  110. package/lib/utils/version-compatible.js +3 -3
  111. package/lib/utils/version-compatible.js.map +1 -1
  112. package/lib/version.d.ts +1 -1
  113. package/lib/version.d.ts.map +1 -1
  114. package/lib/version.js +1 -1
  115. package/lib/version.js.map +1 -1
  116. package/lib/webhooks/index.d.ts.map +1 -1
  117. package/lib/webhooks/index.js +6 -6
  118. package/lib/webhooks/index.js.map +1 -1
  119. package/lib/webhooks/process.d.ts +1 -1
  120. package/lib/webhooks/process.d.ts.map +1 -1
  121. package/lib/webhooks/process.js +55 -34
  122. package/lib/webhooks/process.js.map +1 -1
  123. package/lib/webhooks/register.d.ts +1 -1
  124. package/lib/webhooks/register.d.ts.map +1 -1
  125. package/lib/webhooks/register.js +7 -7
  126. package/lib/webhooks/register.js.map +1 -1
  127. package/lib/webhooks/registry.d.ts +4 -4
  128. package/lib/webhooks/registry.d.ts.map +1 -1
  129. package/lib/webhooks/registry.js +9 -9
  130. package/lib/webhooks/registry.js.map +1 -1
  131. package/lib/webhooks/types.d.ts +1 -1
  132. package/lib/webhooks/types.d.ts.map +1 -1
  133. package/lib/webhooks/types.js.map +1 -1
  134. package/package.json +14 -10
package/CHANGELOG.md CHANGED
@@ -7,46 +7,60 @@ and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
7
 
8
8
  ## Unreleased
9
9
 
10
- ## [6.0.0-rc9] - 2022-11-08
10
+ ## [6.0.1] - 2022-12-08
11
11
 
12
- - ⚠️ [Breaking] Latest release candidate for `6.0.0` release, which is a complete breaking change across all surfaces of the library
12
+ - [Patch] Auto-detect session type in auth callback, deprecate `isOnline` argument [#628](https://github.com/Shopify/shopify-api-js/pull/628)
13
+ - [Patch] Removed callback URL path check from webhook processing [#629](https://github.com/Shopify/shopify-api-js/pull/629)
14
+ - [Patch] Pass api version to webhook handlers [#630](https://github.com/Shopify/shopify-api-js/pull/630)
15
+
16
+ ## [6.0.0] - 2022-12-06
17
+
18
+ - ⚠️ [Breaking] Major overhaul of `Shopify/shopify-api-node`, which is a complete breaking change across all surfaces of the library. See the [migration guide](./docs/migrating-to-v6.md) for instructions on how to update your app.
19
+
20
+ ## [5.3.0] - 2022-12-05
21
+
22
+ - [Minor] Pass webhook id to handlers [#606](https://github.com/Shopify/shopify-api-js/pull/606)
23
+
24
+ ## [5.2.0] - 2022-10-04
25
+
26
+ - Added support for the `2022-10` API version [#535](https://github.com/Shopify/shopify-api-js/pull/535)
13
27
 
14
28
  ## [5.1.0] - 2022-09-19
15
29
 
16
- - Increased tolerance for expired JWT session tokens from 5s to 10s [#462](https://github.com/Shopify/shopify-api-node/pull/462)
17
- - Add support for billing to the library [#449](https://github.com/Shopify/shopify-api-node/pull/449)
18
- - Allow dynamically typing the body of REST and GraphQL request responses, so callers don't need to cast it [#447](https://github.com/Shopify/shopify-api-node/pull/447)
19
- - Rather than create a temporary session in order to store a session id in a cookie for the OAuth transaction, we can store the `state` in the cookie instead, that can then be compared against the `state` provided by Shopify in the callback. [#438](https://github.com/Shopify/shopify-api-node/pull/438)
30
+ - Increased tolerance for expired JWT session tokens from 5s to 10s [#462](https://github.com/Shopify/shopify-api-js/pull/462)
31
+ - Add support for billing to the library [#449](https://github.com/Shopify/shopify-api-js/pull/449)
32
+ - Allow dynamically typing the body of REST and GraphQL request responses, so callers don't need to cast it [#447](https://github.com/Shopify/shopify-api-js/pull/447)
33
+ - Rather than create a temporary session in order to store a session id in a cookie for the OAuth transaction, we can store the `state` in the cookie instead, that can then be compared against the `state` provided by Shopify in the callback. [#438](https://github.com/Shopify/shopify-api-js/pull/438)
20
34
 
21
35
  ## [5.0.1] - 2022-08-03
22
36
 
23
- - Make `sanitizeHost` validation more flexible [#446](https://github.com/Shopify/shopify-api-node/pull/446)
37
+ - Make `sanitizeHost` validation more flexible [#446](https://github.com/Shopify/shopify-api-js/pull/446)
24
38
 
25
39
  ## [5.0.0] - 2022-07-28
26
40
 
27
- - ⚠️ [Breaking] If a response from a GraphQL query contains an `errors` attribute, `GraphqlClient` will now throw a `GraphqlQueryError`. The caller can check the `error.response` attribute to see what was returned from the GraphQL API. [#431](https://github.com/Shopify/shopify-api-node/pull/431)
28
- - ⚠️ [Breaking] Add utils functions to sanitize shops and hosts, and remove the `validateShop` utils function [#434](https://github.com/Shopify/shopify-api-node/pull/434)
29
- - Allow passing in options for the Redis client used by the session storage strategy [#430](https://github.com/Shopify/shopify-api-node/pull/430)
30
- - Fix User-Agent header sent in PUT / POST requests [#435](https://github.com/Shopify/shopify-api-node/pull/435)
41
+ - ⚠️ [Breaking] If a response from a GraphQL query contains an `errors` attribute, `GraphqlClient` will now throw a `GraphqlQueryError`. The caller can check the `error.response` attribute to see what was returned from the GraphQL API. [#431](https://github.com/Shopify/shopify-api-js/pull/431)
42
+ - ⚠️ [Breaking] Add utils functions to sanitize shops and hosts, and remove the `validateShop` utils function [#434](https://github.com/Shopify/shopify-api-js/pull/434)
43
+ - Allow passing in options for the Redis client used by the session storage strategy [#430](https://github.com/Shopify/shopify-api-js/pull/430)
44
+ - Fix User-Agent header sent in PUT / POST requests [#435](https://github.com/Shopify/shopify-api-js/pull/435)
31
45
 
32
46
  ## [4.2.0] - 2022-07-20
33
47
 
34
- - Return a 401 instead of 403 when webhooks fail validation [#425](https://github.com/Shopify/shopify-api-node/pull/425)
35
- - Add optional new methods `deleteSession` and `findSessionsByShop` to `SessionStorage`, with the corresponding implementations for the various session storage adapters [#418](https://github.com/Shopify/shopify-api-node/pull/418)
36
- - Include subset of query body in API deprecation logs [#426](https://github.com/Shopify/shopify-api-node/pull/426)
48
+ - Return a 401 instead of 403 when webhooks fail validation [#425](https://github.com/Shopify/shopify-api-js/pull/425)
49
+ - Add optional new methods `deleteSession` and `findSessionsByShop` to `SessionStorage`, with the corresponding implementations for the various session storage adapters [#418](https://github.com/Shopify/shopify-api-js/pull/418)
50
+ - Include subset of query body in API deprecation logs [#426](https://github.com/Shopify/shopify-api-js/pull/426)
37
51
 
38
52
  ## [4.1.0] - 2022-07-14
39
53
 
40
- - Add new method to construct the host app URL [#419](https://github.com/Shopify/shopify-api-node/pull/419)
54
+ - Add new method to construct the host app URL [#419](https://github.com/Shopify/shopify-api-js/pull/419)
41
55
 
42
56
  ## [4.0.0] - 2022-07-04
43
57
 
44
- - ⚠️ [Breaking] Add REST resources for July 2022 API version, add `LATEST_API_VERSION` constant, remove support and REST resources for July 2021 (`2021-07`) API version [#415](https://github.com/Shopify/shopify-api-node/pull/415)
45
- - Add support for July 2022 API version [#409](https://github.com/Shopify/shopify-api-node/pull/409)
58
+ - ⚠️ [Breaking] Add REST resources for July 2022 API version, add `LATEST_API_VERSION` constant, remove support and REST resources for July 2021 (`2021-07`) API version [#415](https://github.com/Shopify/shopify-api-js/pull/415)
59
+ - Add support for July 2022 API version [#409](https://github.com/Shopify/shopify-api-js/pull/409)
46
60
 
47
61
  ### Fixes
48
62
 
49
- - Fix a bug where the PostgreSQL session storage always attempted to create the sessions table [#413](https://github.com/Shopify/shopify-api-node/pull/413)
63
+ - Fix a bug where the PostgreSQL session storage always attempted to create the sessions table [#413](https://github.com/Shopify/shopify-api-js/pull/413)
50
64
 
51
65
  ## [3.1.3] - 2022-06-08
52
66
 
@@ -62,19 +76,19 @@ and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
62
76
 
63
77
  ### Fixes
64
78
 
65
- - Properly parse a non-json HTTP response [#257](https://github.com/Shopify/shopify-api-node/issues/257)
79
+ - Properly parse a non-json HTTP response [#257](https://github.com/Shopify/shopify-api-js/issues/257)
66
80
  - Don’t create a SQLite DB file if the SQLite storage is not used.
67
81
 
68
82
  ## [3.1.0] - 2022-05-16
69
83
 
70
84
  ### Added
71
85
 
72
- - Support for specifying the URI scheme of the host [#385](https://github.com/Shopify/shopify-api-node/pull/385)
86
+ - Support for specifying the URI scheme of the host [#385](https://github.com/Shopify/shopify-api-js/pull/385)
73
87
  - Add optional `saving` parameter to `serialize` of `Base` class - default is `false` and will include read-only attributes in returned object; `true` used for `save` when committing via API to Shopify.
74
88
 
75
89
  ### Fixed
76
90
 
77
- - Fixes [#363](https://github.com/Shopify/shopify-api-node/issues/363)
91
+ - Fixes [#363](https://github.com/Shopify/shopify-api-js/issues/363)
78
92
  - Webhooks `register` now checks for any attempt to register a GDPR topic (not done via API but by Partner Dashboard), provides an error message in response
79
93
  - For topics that don't exist, `register` checks the response from the initial API call for an `errors` field and returns accordingly
80
94
 
@@ -82,22 +96,22 @@ and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
82
96
 
83
97
  ### Added
84
98
 
85
- - Allow REST resources to configure a deny list of attributes to be excluded when saving [#355](https://github.com/Shopify/shopify-api-node/pull/355)
99
+ - Allow REST resources to configure a deny list of attributes to be excluded when saving [#355](https://github.com/Shopify/shopify-api-js/pull/355)
86
100
 
87
101
  ## [3.0.0] - 2022-04-04
88
102
 
89
103
  ### Added
90
104
 
91
- - ⚠️ [Breaking] Removing API version `2021-04` [#343](https://github.com/Shopify/shopify-api-node/pull/343)
105
+ - ⚠️ [Breaking] Removing API version `2021-04` [#343](https://github.com/Shopify/shopify-api-js/pull/343)
92
106
  - ⚠️ [Breaking] The `HttpResponseError` error and its flavours (all returned from HTTP requests) have been slightly altered:
93
107
  - They now take in a hash of values, and will always include the response code, body (as a string if the response is not JSON), and headers
94
108
  - All response fields are now contained within a `response` object, to make it easier to access them
95
- - ⚠️ [Breaking] Update supported Admin API versions [#310](https://github.com/Shopify/shopify-api-node/pull/310)
96
- - Allow full paths in REST requests [#301](https://github.com/Shopify/shopify-api-node/pull/301)
109
+ - ⚠️ [Breaking] Update supported Admin API versions [#310](https://github.com/Shopify/shopify-api-js/pull/310)
110
+ - Allow full paths in REST requests [#301](https://github.com/Shopify/shopify-api-js/pull/301)
97
111
 
98
112
  ### Fixed
99
113
 
100
- - ⚠️ [Breaking] Stop responding to the request in the GraphQL Proxy function, returning Shopify's response instead [#312](https://github.com/Shopify/shopify-api-node/pull/312)
114
+ - ⚠️ [Breaking] Stop responding to the request in the GraphQL Proxy function, returning Shopify's response instead [#312](https://github.com/Shopify/shopify-api-js/pull/312)
101
115
 
102
116
  The examples below are in [express](https://expressjs.com/); you will now need to handle the response yourself.
103
117
 
@@ -122,76 +136,76 @@ and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
122
136
 
123
137
  ### Added
124
138
 
125
- - Add support for January 2022 API version [#285](https://github.com/Shopify/shopify-api-node/pull/285)
139
+ - Add support for January 2022 API version [#285](https://github.com/Shopify/shopify-api-js/pull/285)
126
140
 
127
141
  ## [2.0.0] - 2021-10-28
128
142
 
129
143
  ### Added
130
144
 
131
- - Add a 5 second `clockTolerance` to fix `jwt not active` error [#227](https://github.com/Shopify/shopify-api-node/pull/227)
132
- - ⚠️ [Breaking] Change default for OAuth.beginAuth to online sessions [#203](https://github.com/Shopify/shopify-api-node/pull/203)
133
- - see [oauth.md](https://github.com/Shopify/shopify-api-node/blob/main/docs/usage/oauth.md) for updated docs
134
- - ⚠️ [Breaking] Return and delete session in `validateAuthCallback` [#217](https://github.com/Shopify/shopify-api-node/pull/217)
135
- - see [oauth.md](https://github.com/Shopify/shopify-api-node/blob/main/docs/usage/oauth.md) for updated usage
136
- - ⚠️ [Breaking] Extract `addHandler` and `getHandler` methods for webhooks out of `register` [#205](https://github.com/Shopify/shopify-api-node/pull/205)
137
- - ⚠️ [Breaking] Sessions no longer default to `false` for `isOnline` [#169](https://github.com/Shopify/shopify-api-node/pull/169)
138
- - Required `Session` arguments must be passed to the constructor [#169](https://github.com/Shopify/shopify-api-node/pull/169)
139
- - Allow `undefined` in `AuthScopes` [#169](https://github.com/Shopify/shopify-api-node/pull/169)
145
+ - Add a 5 second `clockTolerance` to fix `jwt not active` error [#227](https://github.com/Shopify/shopify-api-js/pull/227)
146
+ - ⚠️ [Breaking] Change default for OAuth.beginAuth to online sessions [#203](https://github.com/Shopify/shopify-api-js/pull/203)
147
+ - see [oauth.md](https://github.com/Shopify/shopify-api-js/blob/main/docs/usage/oauth.md) for updated docs
148
+ - ⚠️ [Breaking] Return and delete session in `validateAuthCallback` [#217](https://github.com/Shopify/shopify-api-js/pull/217)
149
+ - see [oauth.md](https://github.com/Shopify/shopify-api-js/blob/main/docs/usage/oauth.md) for updated usage
150
+ - ⚠️ [Breaking] Extract `addHandler` and `getHandler` methods for webhooks out of `register` [#205](https://github.com/Shopify/shopify-api-js/pull/205)
151
+ - ⚠️ [Breaking] Sessions no longer default to `false` for `isOnline` [#169](https://github.com/Shopify/shopify-api-js/pull/169)
152
+ - Required `Session` arguments must be passed to the constructor [#169](https://github.com/Shopify/shopify-api-js/pull/169)
153
+ - Allow `undefined` in `AuthScopes` [#169](https://github.com/Shopify/shopify-api-js/pull/169)
140
154
 
141
155
  ## [1.4.3] - 2021-10-22
142
156
 
143
157
  ### Fixed
144
158
 
145
- - Fixed the HTTP client error messages to expand objects [#252](https://github.com/Shopify/shopify-api-node/pull/252)
159
+ - Fixed the HTTP client error messages to expand objects [#252](https://github.com/Shopify/shopify-api-js/pull/252)
146
160
 
147
161
  ## [1.4.2] - 2021-10-20
148
162
 
149
- - Added `October21` to `ApiVersion` [#247](https://github.com/Shopify/shopify-api-node/pull/247)
163
+ - Added `October21` to `ApiVersion` [#247](https://github.com/Shopify/shopify-api-js/pull/247)
150
164
 
151
165
  ## [1.4.1] - 2021-06-11
152
166
 
153
- - Don't include extra params when calculating local hmac [#196](https://github.com/Shopify/shopify-api-node/pull/196)
167
+ - Don't include extra params when calculating local hmac [#196](https://github.com/Shopify/shopify-api-js/pull/196)
154
168
 
155
169
  ## [1.4.0] - 2021-05-21
156
170
 
157
171
  ### Added
158
172
 
159
- - Add support for registering Google Pub/Sub webhooks [#181](https://github.com/Shopify/shopify-api-node/pull/181)
160
- - Added `July21` to `ApiVersion` [#181](https://github.com/Shopify/shopify-api-node/pull/181)
173
+ - Add support for registering Google Pub/Sub webhooks [#181](https://github.com/Shopify/shopify-api-js/pull/181)
174
+ - Added `July21` to `ApiVersion` [#181](https://github.com/Shopify/shopify-api-js/pull/181)
161
175
 
162
176
  ## [1.3.0] - 2021-05-12
163
177
 
164
178
  ### Added
165
179
 
166
180
  - Added Storefront API client under `Shopify.Clients.Storefront`
167
- - Add `isActive()` method to `Session` class to check if session is active, replace `Session` with `SessionInterface` when used as a type [#153](https://github.com/Shopify/shopify-api-node/pull/153)
181
+ - Add `isActive()` method to `Session` class to check if session is active, replace `Session` with `SessionInterface` when used as a type [#153](https://github.com/Shopify/shopify-api-js/pull/153)
168
182
 
169
183
  ## [1.2.1] - 2021-03-26
170
184
 
171
185
  ### Added
172
186
 
173
- - Added `April21` to `ApiVersion` [#149](https://github.com/Shopify/shopify-api-node/pull/149)
187
+ - Added `April21` to `ApiVersion` [#149](https://github.com/Shopify/shopify-api-js/pull/149)
174
188
 
175
189
  ## [1.2.0] - 2021-03-16
176
190
 
177
191
  ### Added
178
192
 
179
- - Allow plain objects to be returned from the `loadCallback` on `CustomSessionStorage` [#126](https://github.com/Shopify/shopify-api-node/pull/126)
180
- - Documentation and example code for `CustomSessionStorage` [#129](https://github.com/Shopify/shopify-api-node/pull/129)
193
+ - Allow plain objects to be returned from the `loadCallback` on `CustomSessionStorage` [#126](https://github.com/Shopify/shopify-api-js/pull/126)
194
+ - Documentation and example code for `CustomSessionStorage` [#129](https://github.com/Shopify/shopify-api-js/pull/129)
181
195
 
182
196
  ### Fixed
183
197
 
184
- - Throw a different error for a missing cookie upon OAuth return [#131](https://github.com/Shopify/shopify-api-node/pull/131)
185
- - Improved documentation for GraphQL and Rest Clients. [#123](https://github.com/Shopify/shopify-api-node/pull/123)
186
- - Made Docs directory more browseable in GitHub. [#136](https://github.com/Shopify/shopify-api-node/pull/136)
187
- - Make sure `CustomSessionStorage` converts the `expires` field from a string to `Date`. [#132](https://github.com/Shopify/shopify-api-node/pull/132)
188
- - Made `limit` optional for get-requests with query [#135](https://github.com/Shopify/shopify-api-node/pull/135)
198
+ - Throw a different error for a missing cookie upon OAuth return [#131](https://github.com/Shopify/shopify-api-js/pull/131)
199
+ - Improved documentation for GraphQL and Rest Clients. [#123](https://github.com/Shopify/shopify-api-js/pull/123)
200
+ - Made Docs directory more browseable in GitHub. [#136](https://github.com/Shopify/shopify-api-js/pull/136)
201
+ - Make sure `CustomSessionStorage` converts the `expires` field from a string to `Date`. [#132](https://github.com/Shopify/shopify-api-js/pull/132)
202
+ - Made `limit` optional for get-requests with query [#135](https://github.com/Shopify/shopify-api-js/pull/135)
189
203
 
190
204
  ## [1.1.0] - 2021-03-02
191
205
 
192
206
  - Minor text/doc changes
193
- - Added `2021-01` API version to enum. [#117](https://github.com/Shopify/shopify-api-node/pull/117)
194
- - Allow retrieving offline sessions using `loadCurrentSession`. [#119](https://github.com/Shopify/shopify-api-node/pull/119)
207
+ - Added `2021-01` API version to enum. [#117](https://github.com/Shopify/shopify-api-js/pull/117)
208
+ - Allow retrieving offline sessions using `loadCurrentSession`. [#119](https://github.com/Shopify/shopify-api-js/pull/119)
195
209
 
196
210
  ## [1.0.0]
197
211
 
@@ -201,56 +215,56 @@ and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
201
215
 
202
216
  ### Added
203
217
 
204
- - Added `AuthScopes` value object to allow apps to easily check whether scopes have been updated. [#110](https://github.com/Shopify/shopify-api-node/pull/110)
218
+ - Added `AuthScopes` value object to allow apps to easily check whether scopes have been updated. [#110](https://github.com/Shopify/shopify-api-js/pull/110)
205
219
 
206
220
  ### Fixed
207
221
 
208
- - GraphQL Proxy attempts to parse the request body as JSON before passing it to the client. [#106](https://github.com/Shopify/shopify-api-node/pull/106)
222
+ - GraphQL Proxy attempts to parse the request body as JSON before passing it to the client. [#106](https://github.com/Shopify/shopify-api-js/pull/106)
209
223
 
210
224
  ## [0.4.0] - 2021-02-10
211
225
 
212
226
  ### Added
213
227
 
214
- - Webhooks types are now exported outside the library [#91](https://github.com/Shopify/shopify-api-node/pull/91)
215
- - Added support for private apps [#99](https://github.com/Shopify/shopify-api-node/pull/99)
216
- - `USER_AGENT_PREFIX` added to Context, to add agent to all requests [#101](https://github.com/Shopify/shopify-api-node/pull/101)
217
- - Add link to tutorial on how to rotate credentials if neccesary [#107](https://github.com/Shopify/shopify-api-node/pull/107)
228
+ - Webhooks types are now exported outside the library [#91](https://github.com/Shopify/shopify-api-js/pull/91)
229
+ - Added support for private apps [#99](https://github.com/Shopify/shopify-api-js/pull/99)
230
+ - `USER_AGENT_PREFIX` added to Context, to add agent to all requests [#101](https://github.com/Shopify/shopify-api-js/pull/101)
231
+ - Add link to tutorial on how to rotate credentials if neccesary [#107](https://github.com/Shopify/shopify-api-js/pull/107)
218
232
 
219
233
  ### Fixed
220
234
 
221
- - Export `withSession` utility method [#96](https://github.com/Shopify/shopify-api-node/pull/96)
222
- - GraphQL Client appropriately handles queries with variables [#97](https://github.com/Shopify/shopify-api-node/pull/97)
223
- - Use cryptographically random bytes to generate nonce [#98](https://github.com/Shopify/shopify-api-node/pull/98)
224
- - Stop using `SameSite=none` cookies for OAuth, using `lax` instead [#100](https://github.com/Shopify/shopify-api-node/pull/100)
235
+ - Export `withSession` utility method [#96](https://github.com/Shopify/shopify-api-js/pull/96)
236
+ - GraphQL Client appropriately handles queries with variables [#97](https://github.com/Shopify/shopify-api-js/pull/97)
237
+ - Use cryptographically random bytes to generate nonce [#98](https://github.com/Shopify/shopify-api-js/pull/98)
238
+ - Stop using `SameSite=none` cookies for OAuth, using `lax` instead [#100](https://github.com/Shopify/shopify-api-js/pull/100)
225
239
 
226
240
  ## [0.3.1] - 2021-02-03
227
241
 
228
242
  ### Fixed
229
243
 
230
- - Fixed an issue when deleting the current session for embedded apps [#88](https://github.com/Shopify/shopify-api-node/pull/88)
244
+ - Fixed an issue when deleting the current session for embedded apps [#88](https://github.com/Shopify/shopify-api-js/pull/88)
231
245
 
232
246
  ## [0.3.0] - 2021-01-27
233
247
 
234
248
  ### Added
235
249
 
236
- - Add `withSession` utility method [#83](https://github.com/Shopify/shopify-api-node/pull/83)
250
+ - Add `withSession` utility method [#83](https://github.com/Shopify/shopify-api-js/pull/83)
237
251
 
238
252
  ### Fixed
239
253
 
240
- - Refactor library public interface [#87](https://github.com/Shopify/shopify-api-node/pull/87)
241
- - Check if a webhook is registered before calling Shopify [#82](https://github.com/Shopify/shopify-api-node/pull/82)
254
+ - Refactor library public interface [#87](https://github.com/Shopify/shopify-api-js/pull/87)
255
+ - Check if a webhook is registered before calling Shopify [#82](https://github.com/Shopify/shopify-api-js/pull/82)
242
256
 
243
257
  ## [0.2.2] - 2021-01-14
244
258
 
245
259
  ### Fixed
246
260
 
247
- - Ensure that the OAuth session expiration matches the cookie expiration [#72](https://github.com/Shopify/shopify-api-node/pull/72) / [#73](https://github.com/Shopify/shopify-api-node/pull/73)
261
+ - Ensure that the OAuth session expiration matches the cookie expiration [#72](https://github.com/Shopify/shopify-api-js/pull/72) / [#73](https://github.com/Shopify/shopify-api-js/pull/73)
248
262
 
249
263
  ## [0.2.0] - 2021-01-13
250
264
 
251
- - Preserve the OAuth cookie session for a few seconds so SPA can perform their initial load using it [#70](https://github.com/Shopify/shopify-api-node/pull/70)
252
- - Session fetches now return `undefined` when a session is not available [#64](https://github.com/Shopify/shopify-api-node/pull/64)
253
- - Add `deleteCurrentSession` utils method [#60](https://github.com/Shopify/shopify-api-node/pull/60)
265
+ - Preserve the OAuth cookie session for a few seconds so SPA can perform their initial load using it [#70](https://github.com/Shopify/shopify-api-js/pull/70)
266
+ - Session fetches now return `undefined` when a session is not available [#64](https://github.com/Shopify/shopify-api-js/pull/64)
267
+ - Add `deleteCurrentSession` utils method [#60](https://github.com/Shopify/shopify-api-js/pull/60)
254
268
 
255
269
  ## [0.1.0] - 2020-12-17
256
270
 
package/README.md CHANGED
@@ -137,6 +137,7 @@ These are all the configuration values `shopifyApi` supports.
137
137
  - [Process a Webhook](docs/usage/webhooks.md#process-a-webhook)
138
138
  - [Billing](docs/usage/billing.md)
139
139
  - [Adding custom runtimes](docs/usage/runtimes.md)
140
+ - [Customizing logging configuration](docs/usage/logger.md)
140
141
 
141
142
  ## Migrating to v6
142
143
 
@@ -8,7 +8,7 @@ var utils_1 = require("../utils");
8
8
  var RED = '\x1b[31m';
9
9
  var GREEN = '\x1b[32m';
10
10
  var RESET = '\x1b[39m';
11
- var HttpClient = (0, http_client_1.createHttpClientClass)(utils_1.config, 'http');
11
+ var HttpClient = (0, http_client_1.httpClientClass)(utils_1.config, 'http');
12
12
  var defaultRetryTimer = HttpClient.RETRY_WAIT_TIME;
13
13
  var testCount = 0;
14
14
  function params(testRequest) {
@@ -1 +1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KAAK,WAAW;4BACpD,WAAW,CAAC,iBAAiB,KAAK,CAAC;4BACnC,OAAO,YAAY,KAAK,WAAW,EACnC;4BACA,YAAY,CAAC,YAAY,CAAC,CAAC;yBAC5B;wBAED,OAAO,CAAC,GAAG,CACT,2BAAoB,SAAS,qBAC3B,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,SACvB,UAAU,SAAG,KAAK,qBAAW,IAAI,CAAC,SAAS,CAC5C,iBAAe,EACf,SAAS,EACT,CAAC,CACF,OAAI,CACN,CAAC;wBAEF,IAAI,UAAU,EAAE;4BACd,sBAAO,IAAI,QAAQ,CAAC,cAAc,EAAE,EAAC,MAAM,EAAE,GAAG,EAAC,CAAC,EAAC;yBACpD;6BAAM;4BACL,sBAAO,IAAI,QAAQ,CAAC,iBAAe,EAAE;oCACnC,MAAM,EAAE,GAAG;oCACX,OAAO,EAAE;wCACP,cAAc,EAAE,kBAAkB;qCACnC;iCACF,CAAC,EAAC;yBACJ;;6BAED,sBAAO,IAAI,QAAQ,CAAC,QAAQ,EAAE,EAAC,MAAM,EAAE,GAAG,EAAC,CAAC,EAAC;;;;;KAEhD;CACF,CAAC"}
@@ -9,7 +9,7 @@ var utils_1 = require("../utils");
9
9
  var RED = '\x1b[31m';
10
10
  var GREEN = '\x1b[32m';
11
11
  var RESET = '\x1b[39m';
12
- var HttpClient = (0, http_client_1.createHttpClientClass)(utils_1.config, 'http');
12
+ var HttpClient = (0, http_client_1.httpClientClass)(utils_1.config, 'http');
13
13
  /* eslint-disable no-process-env */
14
14
  var apiServerPort = parseInt(process.env.HTTP_SERVER_PORT || '3000', 10);
15
15
  var appPort = parseInt(process.env.PORT || '8787', 10);
@@ -1 +1 @@
1
- {"version":3,"file":"test-node-app.js","sourceRoot":"","sources":["test-node-app.ts"],"names":[],"mappings":";;;AAAA,6BAAmE;AAEnE,sBAAoB;AAGpB,4EAAmF;AACnF,kCAA8C;AAG9C,iCAAiC;AACjC,IAAM,GAAG,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5 +1,5 @@
1
1
  import { ConfigInterface } from '../base-types';
2
2
  import { GetEmbeddedAppUrlParams } from './types';
3
- export declare function createGetEmbeddedAppUrl(config: ConfigInterface): ({ ...adapterArgs }: GetEmbeddedAppUrlParams) => Promise<string>;
4
- export declare function createBuildEmbeddedAppUrl(config: ConfigInterface): (host: string) => string;
3
+ export declare function getEmbeddedAppUrl(config: ConfigInterface): ({ ...adapterArgs }: GetEmbeddedAppUrlParams) => Promise<string>;
4
+ export declare function buildEmbeddedAppUrl(config: ConfigInterface): (host: string) => string;
5
5
  //# sourceMappingURL=get-embedded-app-url.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-embedded-app-url.d.ts","sourceRoot":"","sources":["get-embedded-app-url.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,eAAe,EAAC,MAAM,eAAe,CAAC;AAI9C,OAAO,EAAC,uBAAuB,EAAC,MAAM,SAAS,CAAC;AAEhD,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,eAAe,wBAC7B,uBAAuB,KAAG,QAAQ,MAAM,CAAC,CA0B1E;AAED,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,eAAe,UACjD,MAAM,KAAG,MAAM,CAY9B"}
1
+ {"version":3,"file":"get-embedded-app-url.d.ts","sourceRoot":"","sources":["get-embedded-app-url.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,eAAe,EAAC,MAAM,eAAe,CAAC;AAI9C,OAAO,EAAC,uBAAuB,EAAC,MAAM,SAAS,CAAC;AAEhD,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,eAAe,wBACvB,uBAAuB,KAAG,QAAQ,MAAM,CAAC,CA0B1E;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,eAAe,UAC3C,MAAM,KAAG,MAAM,CAY9B"}
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createBuildEmbeddedAppUrl = exports.createGetEmbeddedAppUrl = void 0;
3
+ exports.buildEmbeddedAppUrl = exports.getEmbeddedAppUrl = void 0;
4
4
  var tslib_1 = require("tslib");
5
5
  var ShopifyErrors = tslib_1.__importStar(require("../error"));
6
6
  var http_1 = require("../../runtime/http");
7
7
  var shop_validator_1 = require("../utils/shop-validator");
8
- function createGetEmbeddedAppUrl(config) {
8
+ function getEmbeddedAppUrl(config) {
9
9
  var _this = this;
10
10
  return function (_a) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
11
11
  var request, url, host;
@@ -26,15 +26,15 @@ function createGetEmbeddedAppUrl(config) {
26
26
  if (typeof host !== 'string') {
27
27
  throw new ShopifyErrors.InvalidRequestError('Request does not contain a host query parameter');
28
28
  }
29
- return [2 /*return*/, createBuildEmbeddedAppUrl(config)(host)];
29
+ return [2 /*return*/, buildEmbeddedAppUrl(config)(host)];
30
30
  }
31
31
  });
32
32
  }); };
33
33
  }
34
- exports.createGetEmbeddedAppUrl = createGetEmbeddedAppUrl;
35
- function createBuildEmbeddedAppUrl(config) {
34
+ exports.getEmbeddedAppUrl = getEmbeddedAppUrl;
35
+ function buildEmbeddedAppUrl(config) {
36
36
  return function (host) {
37
- (0, shop_validator_1.createSanitizeHost)(config)(host, true);
37
+ (0, shop_validator_1.sanitizeHost)(config)(host, true);
38
38
  // eslint-disable-next-line no-warning-comments
39
39
  // TODO Remove the Buffer.from call when dropping Node 14 support
40
40
  var decodedHost = typeof atob === 'undefined'
@@ -43,5 +43,5 @@ function createBuildEmbeddedAppUrl(config) {
43
43
  return "https://".concat(decodedHost, "/apps/").concat(config.apiKey);
44
44
  };
45
45
  }
46
- exports.createBuildEmbeddedAppUrl = createBuildEmbeddedAppUrl;
46
+ exports.buildEmbeddedAppUrl = buildEmbeddedAppUrl;
47
47
  //# sourceMappingURL=get-embedded-app-url.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-embedded-app-url.js","sourceRoot":"","sources":["get-embedded-app-url.ts"],"names":[],"mappings":";;;;AAAA,8DAA0C;AAE1C,2CAA0D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K,WAAW;YACzB,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,QAAQ,EAAE;YACxC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAEjB,OAAO,kBAAW,WAAW,mBAAS,MAAM,CAAC,MAAM,CAAE,CAAC;IACxD,CAAC,CAAC;AACJ,CAAC;AAbD,kDAaC"}
@@ -3,7 +3,7 @@ import { nonce } from './oauth/nonce';
3
3
  import { safeCompare } from './oauth/safe-compare';
4
4
  export declare function shopifyAuth(config: ConfigInterface): {
5
5
  begin: ({ shop, callbackPath, isOnline, ...adapterArgs }: import("./types").BeginParams) => Promise<any>;
6
- callback: <T = any>({ isOnline, ...adapterArgs }: import("./types").CallbackParams) => Promise<import("./oauth/oauth").CallbackResponse<T>>;
6
+ callback: <T = any>({ isOnline: isOnlineParam, ...adapterArgs }: import("./types").CallbackParams) => Promise<import("./oauth/oauth").CallbackResponse<T>>;
7
7
  nonce: typeof nonce;
8
8
  safeCompare: typeof safeCompare;
9
9
  getEmbeddedAppUrl: ({ ...adapterArgs }: import("./types").GetEmbeddedAppUrlParams) => Promise<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,eAAe,CAAC;AAG9C,OAAO,EAAC,KAAK,EAAC,MAAM,eAAe,CAAC;AACpC,OAAO,EAAC,WAAW,EAAC,MAAM,sBAAsB,CAAC;AAMjD,wBAAgB,WAAW,CAAC,MAAM,EAAE,eAAe;;;;;;;EASlD;AAED,oBAAY,WAAW,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,eAAe,CAAC;AAG9C,OAAO,EAAC,KAAK,EAAC,MAAM,eAAe,CAAC;AACpC,OAAO,EAAC,WAAW,EAAC,MAAM,sBAAsB,CAAC;AAGjD,wBAAgB,WAAW,CAAC,MAAM,EAAE,eAAe;;;;;;;EASlD;AAED,oBAAY,WAAW,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC"}
package/lib/auth/index.js CHANGED
@@ -7,12 +7,12 @@ var safe_compare_1 = require("./oauth/safe-compare");
7
7
  var get_embedded_app_url_1 = require("./get-embedded-app-url");
8
8
  function shopifyAuth(config) {
9
9
  return {
10
- begin: (0, oauth_1.createBegin)(config),
11
- callback: (0, oauth_1.createCallback)(config),
10
+ begin: (0, oauth_1.begin)(config),
11
+ callback: (0, oauth_1.callback)(config),
12
12
  nonce: nonce_1.nonce,
13
13
  safeCompare: safe_compare_1.safeCompare,
14
- getEmbeddedAppUrl: (0, get_embedded_app_url_1.createGetEmbeddedAppUrl)(config),
15
- buildEmbeddedAppUrl: (0, get_embedded_app_url_1.createBuildEmbeddedAppUrl)(config),
14
+ getEmbeddedAppUrl: (0, get_embedded_app_url_1.getEmbeddedAppUrl)(config),
15
+ buildEmbeddedAppUrl: (0, get_embedded_app_url_1.buildEmbeddedAppUrl)(config),
16
16
  };
17
17
  }
18
18
  exports.shopifyAuth = shopifyAuth;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAEA,uCAA0D;AAC1D,uCAAoC;AACpC,qDAAiD;AACjD,+DAGgC;AAEhC,SAAgB,WAAW,CAAC,MAAuB;IACjD,OAAO;QACL,KAAK,EAAE,IAAA,mBAAW,EAAC,MAAM,CAAC;QAC1B,QAAQ,EAAE,IAAA,sBAAc,EAAC,MAAM,CAAC;QAChC,KAAK,eAAA;QACL,WAAW,4BAAA;QACX,iBAAiB,EAAE,IAAA,8CAAuB,EAAC,MAAM,CAAC;QAClD,mBAAmB,EAAE,IAAA,gDAAyB,EAAC,MAAM,CAAC;KACvD,CAAC;AACJ,CAAC;AATD,kCASC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAEA,uCAA8C;AAC9C,uCAAoC;AACpC,qDAAiD;AACjD,+DAA8E;AAE9E,SAAgB,WAAW,CAAC,MAAuB;IACjD,OAAO;QACL,KAAK,EAAE,IAAA,aAAK,EAAC,MAAM,CAAC;QACpB,QAAQ,EAAE,IAAA,gBAAQ,EAAC,MAAM,CAAC;QAC1B,KAAK,eAAA;QACL,WAAW,4BAAA;QACX,iBAAiB,EAAE,IAAA,wCAAiB,EAAC,MAAM,CAAC;QAC5C,mBAAmB,EAAE,IAAA,0CAAmB,EAAC,MAAM,CAAC;KACjD,CAAC;AACJ,CAAC;AATD,kCASC"}
@@ -6,6 +6,6 @@ export interface CallbackResponse<T = AdapterHeaders> {
6
6
  headers: T;
7
7
  session: Session;
8
8
  }
9
- export declare function createBegin(config: ConfigInterface): ({ shop, callbackPath, isOnline, ...adapterArgs }: BeginParams) => Promise<AdapterResponse>;
10
- export declare function createCallback(config: ConfigInterface): <T = any>({ isOnline, ...adapterArgs }: CallbackParams) => Promise<CallbackResponse<T>>;
9
+ export declare function begin(config: ConfigInterface): ({ shop, callbackPath, isOnline, ...adapterArgs }: BeginParams) => Promise<AdapterResponse>;
10
+ export declare function callback(config: ConfigInterface): <T = any>({ isOnline: isOnlineParam, ...adapterArgs }: CallbackParams) => Promise<CallbackResponse<T>>;
11
11
  //# sourceMappingURL=oauth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["oauth.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,eAAe,EAAC,MAAM,kBAAkB,CAAC;AAIjD,OAAO,EAAC,OAAO,EAAC,MAAM,uBAAuB,CAAC;AAO9C,OAAO,EAIL,eAAe,EACf,cAAc,EAGf,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAGL,WAAW,EACX,cAAc,EAKf,MAAM,SAAS,CAAC;AAIjB,MAAM,WAAW,gBAAgB,CAAC,CAAC,GAAG,cAAc;IAClD,OAAO,EAAE,CAAC,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,wBAAgB,WAAW,CAAC,MAAM,EAAE,eAAe,sDAM9C,WAAW,KAAG,QAAQ,eAAe,CAAC,CAkD1C;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,eAAe,2CAIjD,cAAc,kCA2FlB"}
1
+ {"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["oauth.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,eAAe,EAAC,MAAM,kBAAkB,CAAC;AAIjD,OAAO,EAAC,OAAO,EAAC,MAAM,uBAAuB,CAAC;AAI9C,OAAO,EAIL,eAAe,EACf,cAAc,EAGf,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAGL,WAAW,EACX,cAAc,EAKf,MAAM,SAAS,CAAC;AAIjB,MAAM,WAAW,gBAAgB,CAAC,CAAC,GAAG,cAAc;IAClD,OAAO,EAAE,CAAC,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,wBAAgB,KAAK,CAAC,MAAM,EAAE,eAAe,sDAMxC,WAAW,KAAG,QAAQ,eAAe,CAAC,CAkD1C;AAED,wBAAgB,QAAQ,CAAC,MAAM,EAAE,eAAe,0DAI3C,cAAc,kCAyFlB"}