@myparcel-dev/pdk-common 1.11.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.
- package/CHANGELOG.md +426 -0
- package/dist/data/common.d.ts +21 -0
- package/dist/data/constants.d.ts +18 -0
- package/dist/data/endpoints.d.ts +97 -0
- package/dist/data/index.d.ts +3 -0
- package/dist/index.d.ts +2 -0
- package/dist/types/endpoints.types.d.ts +13 -0
- package/dist/types/generic.types.d.ts +7 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/php-pdk.types.d.ts +750 -0
- package/dist/types/pluginSettings.types.d.ts +29 -0
- package/package.json +48 -0
- package/src/__tests__/__snapshots__/exports.spec.ts.snap +14 -0
- package/src/__tests__/exports.spec.ts +8 -0
- package/src/data/common.ts +23 -0
- package/src/data/constants.ts +21 -0
- package/src/data/endpoints.ts +114 -0
- package/src/data/index.ts +3 -0
- package/src/index.ts +2 -0
- package/src/types/endpoints.types.ts +29 -0
- package/src/types/generic.types.ts +10 -0
- package/src/types/index.ts +4 -0
- package/src/types/php-pdk.types.ts +880 -0
- package/src/types/pluginSettings.types.ts +42 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
<!-- MONOWEAVE:BELOW -->
|
|
4
|
+
|
|
5
|
+
## [1.11.0](https://github.com/myparcelnl/js-pdk/compare/@myparcel-dev/pdk-common@1.10.0...@myparcel-dev/pdk-common@1.11.0) "@myparcel-dev/pdk-common" (2025-12-23)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* migrate to [@myparcel-dev](https://github.com/myparcel-dev) scope ([#289](https://github.com/myparcelnl/js-pdk/issues/289)) ([ca169be](https://github.com/myparcelnl/js-pdk/commit/ca169bec42dcf7174ce20b1bfb392ae620b6c7fd))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [1.10.0](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.9.0...@myparcel-pdk/common@1.10.0) "@myparcel-pdk/common" (2025-11-10)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* add platformConfig to delivery options config definition ([#273](https://github.com/myparcelnl/js-pdk/issues/273)) ([0a9857e](https://github.com/myparcelnl/js-pdk/commit/0a9857e4b45f866c36751c062603d461421f39cf))
|
|
21
|
+
* **js-pdk:** add feature exclude parcel lockers ([#277](https://github.com/myparcelnl/js-pdk/issues/277)) ([34135a9](https://github.com/myparcelnl/js-pdk/commit/34135a92ce131e8cd14c1cf25fc1b48fa9990741))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* **js-pdk:** add acceptance api ([#257](https://github.com/myparcelnl/js-pdk/issues/257)) ([41dad85](https://github.com/myparcelnl/js-pdk/commit/41dad854c192b670e4b2cff23b4077a0f8a4c77e))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
## [1.8.0](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.7.1...@myparcel-pdk/common@1.8.0) "@myparcel-pdk/common" (2025-11-03)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Features
|
|
35
|
+
|
|
36
|
+
* **js-pdk:** add feature exclude parcel lockers ([#277](https://github.com/myparcelnl/js-pdk/issues/277)) ([dd801ea](https://github.com/myparcelnl/js-pdk/commit/dd801eae1806dcd82c16d57c3140c92740f20f3d))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
## [1.7.1](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.7.0...@myparcel-pdk/common@1.7.1) "@myparcel-pdk/common" (2025-10-14)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Bug Fixes
|
|
45
|
+
|
|
46
|
+
* **js-pdk:** add acceptance api ([#257](https://github.com/myparcelnl/js-pdk/issues/257)) ([d95cf37](https://github.com/myparcelnl/js-pdk/commit/d95cf37c612680ca31cc6c57d8689e080847a169))
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
## [1.7.0](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.6.1...@myparcel-pdk/common@1.7.0) "@myparcel-pdk/common" (2025-10-13)
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
### Features
|
|
55
|
+
|
|
56
|
+
* add platformConfig to delivery options config definition ([#273](https://github.com/myparcelnl/js-pdk/issues/273)) ([0a9857e](https://github.com/myparcelnl/js-pdk/commit/0a9857e4b45f866c36751c062603d461421f39cf))
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
## [1.6.1](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.6.0...@myparcel-pdk/common@1.6.1) "@myparcel-pdk/common" (2025-05-08)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
### Bug Fixes
|
|
65
|
+
|
|
66
|
+
* incorrect endpoint definition for FrontendEndpoint.ProxyAddressesList ([8e9c98f](https://github.com/myparcelnl/js-pdk/commit/8e9c98f08fde4ea1e347df624e037d6ddd82a461))
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
## [1.6.0](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.5.0...@myparcel-pdk/common@1.6.0) "@myparcel-pdk/common" (2025-05-07)
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
### Features
|
|
75
|
+
|
|
76
|
+
* **address:** add address proxies to the endpoint type ([6eeba04](https://github.com/myparcelnl/js-pdk/commit/6eeba04260a1bb053daf470a5f95f504b4516f63))
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
## [1.5.0](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.4.0...@myparcel-pdk/common@1.5.0) "@myparcel-pdk/common" (2025-04-16)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
### Features
|
|
85
|
+
|
|
86
|
+
* **address:** add hidden input name to php-pdk types ([#231](https://github.com/myparcelnl/js-pdk/issues/231)) ([c429f2d](https://github.com/myparcelnl/js-pdk/commit/c429f2d505ca991e8bd2d181f49a765691a66675))
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
## [1.4.0](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.3.2...@myparcel-pdk/common@1.4.0) "@myparcel-pdk/common" (2025-01-13)
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
### Features
|
|
95
|
+
|
|
96
|
+
* add receipt code to admin ([#228](https://github.com/myparcelnl/js-pdk/issues/228)) ([d1cc74f](https://github.com/myparcelnl/js-pdk/commit/d1cc74f54701f2a4a17d5f577b2fd8ef1109df70))
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
## [1.3.2](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.3.1...@myparcel-pdk/common@1.3.2) "@myparcel-pdk/common" (2024-10-24)
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
## [1.3.1](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.3.0...@myparcel-pdk/common@1.3.1) "@myparcel-pdk/common" (2024-10-24)
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
## [1.3.0](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.2.1...@myparcel-pdk/common@1.3.0) "@myparcel-pdk/common" (2024-10-23)
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
### Features
|
|
115
|
+
|
|
116
|
+
* **admin:** add download logs action ([#221](https://github.com/myparcelnl/js-pdk/issues/221)) ([ac60e73](https://github.com/myparcelnl/js-pdk/commit/ac60e734127fd94df454f002c632f43a48d2eb06))
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
## [1.2.1](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.2.0...@myparcel-pdk/common@1.2.1) "@myparcel-pdk/common" (2024-10-04)
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
## [1.2.0](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.1.0...@myparcel-pdk/common@1.2.0) "@myparcel-pdk/common" (2024-09-26)
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
### Features
|
|
130
|
+
|
|
131
|
+
* **checkout:** improve shipping logic and expose default methods ([#216](https://github.com/myparcelnl/js-pdk/issues/216)) ([e860ba2](https://github.com/myparcelnl/js-pdk/commit/e860ba2bf14dc3dbffd7fb599bad514087c4667e))
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
## [1.1.0](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0...@myparcel-pdk/common@1.1.0) "@myparcel-pdk/common" (2024-06-05)
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
### Features
|
|
140
|
+
|
|
141
|
+
* **admin:** add shipping methods input ([#210](https://github.com/myparcelnl/js-pdk/issues/210)) ([79758ad](https://github.com/myparcelnl/js-pdk/commit/79758ad39bd9c0dd5d2258d79f379ac5f1ccc790))
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
## [1.0.0](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.1...@myparcel-pdk/common@1.0.0) "@myparcel-pdk/common" (2024-04-11)
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
### ⚠ BREAKING CHANGES
|
|
150
|
+
|
|
151
|
+
* update node requirement to 20
|
|
152
|
+
|
|
153
|
+
### Miscellaneous Chores
|
|
154
|
+
|
|
155
|
+
* update node requirement to 20 ([e3f867f](https://github.com/myparcelnl/js-pdk/commit/e3f867fd3e19245154748a6858dbad4b56673fa3))
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
## [1.0.0-beta.3](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-beta.2...@myparcel-pdk/common@1.0.0-beta.3) "@myparcel-pdk/common" (2024-03-14)
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
## [1.0.0-beta.1](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-beta.0...@myparcel-pdk/common@1.0.0-beta.1) "@myparcel-pdk/common" (2024-03-13)
|
|
166
|
+
|
|
167
|
+
## [1.0.0-beta.0](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.1...@myparcel-pdk/common@1.0.0-beta.0) "@myparcel-pdk/common" (2024-03-06)
|
|
168
|
+
|
|
169
|
+
### Features
|
|
170
|
+
|
|
171
|
+
- **order-card:** show digital stamp range weight ([#200](https://github.com/myparcelnl/js-pdk/issues/200)) ([c5f2b6f](https://github.com/myparcelnl/js-pdk/commit/c5f2b6f832a2e80a715d55fe5bc3f3ff04c0503d))
|
|
172
|
+
- update @myparcelnl/constants to v2.0.0 ([022c980](https://github.com/myparcelnl/js-pdk/commit/022c980950dd37b6e750c04f65e57c6435f01279))
|
|
173
|
+
|
|
174
|
+
## [1.0.0-alpha.58](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.57...@myparcel-pdk/common@1.0.0-alpha.58) "@myparcel-pdk/common" (2023-11-01)
|
|
175
|
+
|
|
176
|
+
## [1.0.0-alpha.57](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.56...@myparcel-pdk/common@1.0.0-alpha.57) "@myparcel-pdk/common" (2023-10-13)
|
|
177
|
+
|
|
178
|
+
### Features
|
|
179
|
+
|
|
180
|
+
- **admin:** add digital stamp weight range option ([#197](https://github.com/myparcelnl/js-pdk/issues/197)) ([98dab70](https://github.com/myparcelnl/js-pdk/commit/98dab70606f6c2a05e24075c61b6afa604a67ce4))
|
|
181
|
+
|
|
182
|
+
## [1.0.0-alpha.56](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.55...@myparcel-pdk/common@1.0.0-alpha.56) "@myparcel-pdk/common" (2023-10-13)
|
|
183
|
+
|
|
184
|
+
## [1.0.0-alpha.55](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.54...@myparcel-pdk/common@1.0.0-alpha.55) "@myparcel-pdk/common" (2023-10-03)
|
|
185
|
+
|
|
186
|
+
### Features
|
|
187
|
+
|
|
188
|
+
- **admin:** show shipment and order details in grid ([9655476](https://github.com/myparcelnl/js-pdk/commit/96554762514bcc7cb282742c1e0ae50afe94be5c))
|
|
189
|
+
|
|
190
|
+
## [1.0.0-alpha.54](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.53...@myparcel-pdk/common@1.0.0-alpha.54) "@myparcel-pdk/common" (2023-09-11)
|
|
191
|
+
|
|
192
|
+
### Bug Fixes
|
|
193
|
+
|
|
194
|
+
- **admin:** export component prop and emit types ([ca7a3c8](https://github.com/myparcelnl/js-pdk/commit/ca7a3c83f774859494ca4c11831bbd6c7e755136))
|
|
195
|
+
|
|
196
|
+
## [1.0.0-alpha.53](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.52...@myparcel-pdk/common@1.0.0-alpha.53) "@myparcel-pdk/common" (2023-09-08)
|
|
197
|
+
|
|
198
|
+
### Bug Fixes
|
|
199
|
+
|
|
200
|
+
- **settings:** move general settings to order ([18f5c5f](https://github.com/myparcelnl/js-pdk/commit/18f5c5f539a0ee335b78b1b5eada2375a18f36f7))
|
|
201
|
+
|
|
202
|
+
## [1.0.0-alpha.52](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.51...@myparcel-pdk/common@1.0.0-alpha.52) "@myparcel-pdk/common" (2023-09-06)
|
|
203
|
+
|
|
204
|
+
## [1.0.0-alpha.51](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.50...@myparcel-pdk/common@1.0.0-alpha.51) "@myparcel-pdk/common" (2023-09-06)
|
|
205
|
+
|
|
206
|
+
### Features
|
|
207
|
+
|
|
208
|
+
- **admin:** make shipment options more dynamic ([#192](https://github.com/myparcelnl/js-pdk/issues/192)) ([7716b86](https://github.com/myparcelnl/js-pdk/commit/7716b86d1b3a4cc65c85778c73c8d85ce00a65cf))
|
|
209
|
+
|
|
210
|
+
## [1.0.0-alpha.49](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.48...@myparcel-pdk/common@1.0.0-alpha.49) "@myparcel-pdk/common" (2023-08-21)
|
|
211
|
+
|
|
212
|
+
### Features
|
|
213
|
+
|
|
214
|
+
- **admin:** allow more advanced reactivity in generated forms ([b49dd4b](https://github.com/myparcelnl/js-pdk/commit/b49dd4b171f27798225af08ba0926704e695ce29))
|
|
215
|
+
|
|
216
|
+
## [1.0.0-alpha.48](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.47...@myparcel-pdk/common@1.0.0-alpha.48) "@myparcel-pdk/common" (2023-08-08)
|
|
217
|
+
|
|
218
|
+
## [1.0.0-alpha.47](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.46...@myparcel-pdk/common@1.0.0-alpha.47) "@myparcel-pdk/common" (2023-08-04)
|
|
219
|
+
|
|
220
|
+
### Features
|
|
221
|
+
|
|
222
|
+
- **admin:** support child products ([f06fca0](https://github.com/myparcelnl/js-pdk/commit/f06fca08a3b2ec5575efb6b59978a75caca76b4d))
|
|
223
|
+
|
|
224
|
+
## [1.0.0-alpha.46](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.45...@myparcel-pdk/common@1.0.0-alpha.46) "@myparcel-pdk/common" (2023-08-03)
|
|
225
|
+
|
|
226
|
+
### Features
|
|
227
|
+
|
|
228
|
+
- **admin:** support rendering components after initial render ([bdba1fc](https://github.com/myparcelnl/js-pdk/commit/bdba1fc5a68cf413560baf8d28023f455198218a))
|
|
229
|
+
|
|
230
|
+
## [1.0.0-alpha.45](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.44...@myparcel-pdk/common@1.0.0-alpha.45) "@myparcel-pdk/common" (2023-08-02)
|
|
231
|
+
|
|
232
|
+
### Features
|
|
233
|
+
|
|
234
|
+
- make unique queries for all orders and shipments actions ([91bb5d8](https://github.com/myparcelnl/js-pdk/commit/91bb5d895753d0bb39504a5f4c29a782fe0a38e7))
|
|
235
|
+
|
|
236
|
+
## [1.0.0-alpha.44](https://github.com/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.43...@myparcel-pdk/common@1.0.0-alpha.44) "@myparcel-pdk/common" (2023-07-26)
|
|
237
|
+
|
|
238
|
+
### Bug Fixes
|
|
239
|
+
|
|
240
|
+
- **npm:** update repository field ([e940854](https://github.com/myparcelnl/js-pdk/commit/e940854ba1d99c0fcdada8b66f88a7c7e6060272))
|
|
241
|
+
|
|
242
|
+
## [1.0.0-alpha.43](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.42...@myparcel-pdk/common@1.0.0-alpha.43) "@myparcel-pdk/common" (2023-07-17)
|
|
243
|
+
|
|
244
|
+
### Bug Fixes
|
|
245
|
+
|
|
246
|
+
- **admin:** fix deleting and updating account actions ([9b14b43](https://github/myparcelnl/js-pdk/commit/9b14b4337c661767bb0f4989829c0ff69a779386))
|
|
247
|
+
|
|
248
|
+
## [1.0.0-alpha.42](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.41...@myparcel-pdk/common@1.0.0-alpha.42) "@myparcel-pdk/common" (2023-07-11)
|
|
249
|
+
|
|
250
|
+
## [1.0.0-alpha.41](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.40...@myparcel-pdk/common@1.0.0-alpha.41) "@myparcel-pdk/common" (2023-07-10)
|
|
251
|
+
|
|
252
|
+
### Features
|
|
253
|
+
|
|
254
|
+
- **admin:** support disabledWhen and readOnlyWhen from backend ([01cb7a1](https://github/myparcelnl/js-pdk/commit/01cb7a1952ec95f419ea0e8598d13ceb81f2f48f))
|
|
255
|
+
|
|
256
|
+
## [1.0.0-alpha.40](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.39...@myparcel-pdk/common@1.0.0-alpha.40) "@myparcel-pdk/common" (2023-07-04)
|
|
257
|
+
|
|
258
|
+
## [1.0.0-alpha.39](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.38...@myparcel-pdk/common@1.0.0-alpha.39) "@myparcel-pdk/common" (2023-07-03)
|
|
259
|
+
|
|
260
|
+
### Features
|
|
261
|
+
|
|
262
|
+
- add tristate component to admin types ([#183](https://github/myparcelnl/js-pdk/issues/183)) ([7939894](https://github/myparcelnl/js-pdk/commit/7939894d5906a30abbc1206419e27049a8c5bb70))
|
|
263
|
+
- **components:** add tri-state input ([8a27655](https://github/myparcelnl/js-pdk/commit/8a27655003ff7ee0ee363f78235fbd74cc0c0096))
|
|
264
|
+
|
|
265
|
+
## [1.0.0-alpha.38](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.37...@myparcel-pdk/common@1.0.0-alpha.38) "@myparcel-pdk/common" (2023-06-28)
|
|
266
|
+
|
|
267
|
+
### Features
|
|
268
|
+
|
|
269
|
+
- **admin:** improve carrier logic ([6783afd](https://github/myparcelnl/js-pdk/commit/6783afd7cc8f0903b1e8eedd53f11f9b0a8214fa))
|
|
270
|
+
|
|
271
|
+
## [1.0.0-alpha.37](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.36...@myparcel-pdk/common@1.0.0-alpha.37) "@myparcel-pdk/common" (2023-06-28)
|
|
272
|
+
|
|
273
|
+
## [1.0.0-alpha.36](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.35...@myparcel-pdk/common@1.0.0-alpha.36) "@myparcel-pdk/common" (2023-06-07)
|
|
274
|
+
|
|
275
|
+
### Features
|
|
276
|
+
|
|
277
|
+
- **admin:** allow passing attributes to dynamic form components ([4f85d4e](https://github/myparcelnl/js-pdk/commit/4f85d4e97c117771962c52609de46939db19c5a0))
|
|
278
|
+
|
|
279
|
+
## [1.0.0-alpha.35](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.34...@myparcel-pdk/common@1.0.0-alpha.35) "@myparcel-pdk/common" (2023-06-06)
|
|
280
|
+
|
|
281
|
+
## [1.0.0-alpha.34](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.33...@myparcel-pdk/common@1.0.0-alpha.34) "@myparcel-pdk/common" (2023-05-31)
|
|
282
|
+
|
|
283
|
+
### Bug Fixes
|
|
284
|
+
|
|
285
|
+
- **meta:** fix all ts errors ([dfa0bbb](https://github/myparcelnl/js-pdk/commit/dfa0bbb308c4863ce0fb4c9a0d55f2b5fa8fdb6c))
|
|
286
|
+
|
|
287
|
+
## [1.0.0-alpha.33](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.32...@myparcel-pdk/common@1.0.0-alpha.33) "@myparcel-pdk/common" (2023-05-26)
|
|
288
|
+
|
|
289
|
+
### Bug Fixes
|
|
290
|
+
|
|
291
|
+
- restore missing types ([903cfb9](https://github/myparcelnl/js-pdk/commit/903cfb95f161bb5b49fbb91c4f96a7e44c524db8))
|
|
292
|
+
|
|
293
|
+
## [1.0.0-alpha.32](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.31...@myparcel-pdk/common@1.0.0-alpha.32) "@myparcel-pdk/common" (2023-05-25)
|
|
294
|
+
|
|
295
|
+
## [1.0.0-alpha.31](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.30...@myparcel-pdk/common@1.0.0-alpha.31) "@myparcel-pdk/common" (2023-05-25)
|
|
296
|
+
|
|
297
|
+
### ⚠ BREAKING CHANGES
|
|
298
|
+
|
|
299
|
+
- change all packages so imports don't need /src anymore
|
|
300
|
+
|
|
301
|
+
### Code Refactoring
|
|
302
|
+
|
|
303
|
+
- change all packages so imports don't need /src anymore ([892306b](https://github/myparcelnl/js-pdk/commit/892306bd3307fe8d5d011bbf6eb7654f7365347a))
|
|
304
|
+
|
|
305
|
+
## [1.0.0-alpha.30](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.29...@myparcel-pdk/common@1.0.0-alpha.30) "@myparcel-pdk/common" (2023-05-04)
|
|
306
|
+
|
|
307
|
+
### Features
|
|
308
|
+
|
|
309
|
+
- **checkout:** improve checkout logic ([fb2a8bd](https://github/myparcelnl/js-pdk/commit/fb2a8bd4b9404cac0fe600526d85465e3a1ee5f9))
|
|
310
|
+
|
|
311
|
+
## [1.0.0-alpha.29](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.28...@myparcel-pdk/common@1.0.0-alpha.29) "@myparcel-pdk/common" (2023-05-01)
|
|
312
|
+
|
|
313
|
+
### Features
|
|
314
|
+
|
|
315
|
+
- **admin:** add platform data to global context ([3a227d1](https://github/myparcelnl/js-pdk/commit/3a227d117da0473eb47a31f5c81a65634c60ae15))
|
|
316
|
+
- **admin:** add subtext option to field ([0a4bc2c](https://github/myparcelnl/js-pdk/commit/0a4bc2c50d9e8636638478a76007974797ec593a))
|
|
317
|
+
|
|
318
|
+
## [1.0.0-alpha.28](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.27...@myparcel-pdk/common@1.0.0-alpha.28) "@myparcel-pdk/common" (2023-04-18)
|
|
319
|
+
|
|
320
|
+
### Features
|
|
321
|
+
|
|
322
|
+
- add badge component ([918dc38](https://github/myparcelnl/js-pdk/commit/918dc38036cc392d055ee47b3c80e512815ac836))
|
|
323
|
+
|
|
324
|
+
## [1.0.0-alpha.27](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.26...@myparcel-pdk/common@1.0.0-alpha.27) "@myparcel-pdk/common" (2023-04-12)
|
|
325
|
+
|
|
326
|
+
### Features
|
|
327
|
+
|
|
328
|
+
- **core:** add dividers to settings ([5d198c3](https://github/myparcelnl/js-pdk/commit/5d198c328a2ed1b47ed210e6f6b012a873b9679e))
|
|
329
|
+
- **core:** add multi select input ([f441a74](https://github/myparcelnl/js-pdk/commit/f441a74e1171354563bb0779a2b1cd556d7e3109))
|
|
330
|
+
|
|
331
|
+
## [1.0.0-alpha.26](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.25...@myparcel-pdk/common@1.0.0-alpha.26) "@myparcel-pdk/common" (2023-04-05)
|
|
332
|
+
|
|
333
|
+
## [1.0.0-alpha.25](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.24...@myparcel-pdk/common@1.0.0-alpha.25) "@myparcel-pdk/common" (2023-04-05)
|
|
334
|
+
|
|
335
|
+
### Features
|
|
336
|
+
|
|
337
|
+
- add TextArea and CodeEditor components ([#137](https://github/myparcelnl/js-pdk/issues/137)) ([84fca1b](https://github/myparcelnl/js-pdk/commit/84fca1bbb18517f4a393dc2a2d228112ed164987))
|
|
338
|
+
- **core:** allow adding image or icon to multi radio option ([68e056a](https://github/myparcelnl/js-pdk/commit/68e056a0391fb5de4ec727cf8df9fc2fdf72193c))
|
|
339
|
+
|
|
340
|
+
### Bug Fixes
|
|
341
|
+
|
|
342
|
+
- **core:** fix multi radio input ([37e823d](https://github/myparcelnl/js-pdk/commit/37e823d50242b50e8c6782b949e8ad0e3ad8e952))
|
|
343
|
+
|
|
344
|
+
## [1.0.0-alpha.18](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.17...@myparcel-pdk/common@1.0.0-alpha.18) "@myparcel-pdk/common" (2023-03-16)
|
|
345
|
+
|
|
346
|
+
### Bug Fixes
|
|
347
|
+
|
|
348
|
+
- **core:** improve query logic ([8cefda3](https://github/myparcelnl/js-pdk/commit/8cefda35a5e0540d82e5508425f11fbc8e6acdf7))
|
|
349
|
+
|
|
350
|
+
## [1.0.0-alpha.17](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.16...@myparcel-pdk/common@1.0.0-alpha.17) "@myparcel-pdk/common" (2023-03-16)
|
|
351
|
+
|
|
352
|
+
### Bug Fixes
|
|
353
|
+
|
|
354
|
+
- **core:** detach shipments from orders ([ec61d47](https://github/myparcelnl/js-pdk/commit/ec61d47651c0a3ab6687146ec35559191f82ba3f))
|
|
355
|
+
|
|
356
|
+
## [1.0.0-alpha.16](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.15...@myparcel-pdk/common@1.0.0-alpha.16) "@myparcel-pdk/common" (2023-03-16)
|
|
357
|
+
|
|
358
|
+
### Bug Fixes
|
|
359
|
+
|
|
360
|
+
- **core:** fix opening labels in a new window ([6a5163a](https://github/myparcelnl/js-pdk/commit/6a5163a00c74be221931fcf76223dc5c2b1fe537))
|
|
361
|
+
- update shipment labels in order list ([0b1e0ad](https://github/myparcelnl/js-pdk/commit/0b1e0ad0701b9950d387e54cd2e6750a640d7a91))
|
|
362
|
+
|
|
363
|
+
## [1.0.0-alpha.15](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.14...@myparcel-pdk/common@1.0.0-alpha.15) "@myparcel-pdk/common" (2023-03-15)
|
|
364
|
+
|
|
365
|
+
### Bug Fixes
|
|
366
|
+
|
|
367
|
+
- **admin:** fix error on single order ([411b10e](https://github/myparcelnl/js-pdk/commit/411b10e16d22ba7041ecfc4fba27e70909ecfd4e))
|
|
368
|
+
- allow selects to have untranslated labels ([6df9761](https://github/myparcelnl/js-pdk/commit/6df9761f819bff82d1855912dabb529ffc7d094d))
|
|
369
|
+
- register return shipments query ([#113](https://github/myparcelnl/js-pdk/issues/113)) ([db5709c](https://github/myparcelnl/js-pdk/commit/db5709c3a9072e9b745b32625c2211756c0bac70))
|
|
370
|
+
|
|
371
|
+
## [1.0.0-alpha.9](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.8...@myparcel-pdk/common@1.0.0-alpha.9) "@myparcel-pdk/common" (2023-03-14)
|
|
372
|
+
|
|
373
|
+
### Bug Fixes
|
|
374
|
+
|
|
375
|
+
- fix print options modal ([c81a852](https://github/myparcelnl/js-pdk/commit/c81a85299d11090edd0b53f2a894cee72ca84164))
|
|
376
|
+
|
|
377
|
+
## [1.0.0-alpha.8](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.7...@myparcel-pdk/common@1.0.0-alpha.8) "@myparcel-pdk/common" (2023-03-14)
|
|
378
|
+
|
|
379
|
+
### Bug Fixes
|
|
380
|
+
|
|
381
|
+
- start on open or print action ([b7763a9](https://github/myparcelnl/js-pdk/commit/b7763a92d25d3e171530d8335397a15dbea656e2))
|
|
382
|
+
|
|
383
|
+
## [1.0.0-alpha.7](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.6...@myparcel-pdk/common@1.0.0-alpha.7) "@myparcel-pdk/common" (2023-03-10)
|
|
384
|
+
|
|
385
|
+
### Features
|
|
386
|
+
|
|
387
|
+
- allow actions to be called from the outside ([da03e99](https://github/myparcelnl/js-pdk/commit/da03e994c6f3ee41bb9819bedc1aab9bbea21beb))
|
|
388
|
+
|
|
389
|
+
## [1.0.0-alpha.5](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.4...@myparcel-pdk/common@1.0.0-alpha.5) "@myparcel-pdk/common" (2023-03-03)
|
|
390
|
+
|
|
391
|
+
## [1.0.0-alpha.4](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.3...@myparcel-pdk/common@1.0.0-alpha.4) "@myparcel-pdk/common" (2023-02-24)
|
|
392
|
+
|
|
393
|
+
### Features
|
|
394
|
+
|
|
395
|
+
- improve settings view ([3e23462](https://github/myparcelnl/js-pdk/commit/3e234624173e403b9aa72605734f41e73139e1ff))
|
|
396
|
+
|
|
397
|
+
## [1.0.0-alpha.3](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.2...@myparcel-pdk/common@1.0.0-alpha.3) "@myparcel-pdk/common" (2023-02-23)
|
|
398
|
+
|
|
399
|
+
## [1.0.0-alpha.2](https://github/myparcelnl/js-pdk/compare/@myparcel-pdk/common@1.0.0-alpha.1...@myparcel-pdk/common@1.0.0-alpha.2) "@myparcel-pdk/common" (2023-02-22)
|
|
400
|
+
|
|
401
|
+
### Features
|
|
402
|
+
|
|
403
|
+
- add checkout app ([ee2543b](https://github/myparcelnl/js-pdk/commit/ee2543bc90c643b14e668447a0d06ed173e5baae))
|
|
404
|
+
- add drop off day input ([#85](https://github/myparcelnl/js-pdk/issues/85)) ([014f3e8](https://github/myparcelnl/js-pdk/commit/014f3e8f68d400f2cebb53a7dba584b944460371))
|
|
405
|
+
- add more optional components ([fb95c5c](https://github/myparcelnl/js-pdk/commit/fb95c5c3ee839ec11f862e2fe0983406d0a9aa67))
|
|
406
|
+
- add tab navigation to plugin settings ([ec9960e](https://github/myparcelnl/js-pdk/commit/ec9960e7474550d8c763a2af23dd7d07ed5675df))
|
|
407
|
+
- different order buttons in order mode ([99f4dc7](https://github/myparcelnl/js-pdk/commit/99f4dc74e138a8464c8b4e75660eeaf248b92cb4))
|
|
408
|
+
- fix carrier settings ([b5a4fcd](https://github/myparcelnl/js-pdk/commit/b5a4fcd728d6f827d2c2a00dd048a0a57645aeb8))
|
|
409
|
+
- improve actions and components ([421f8cd](https://github/myparcelnl/js-pdk/commit/421f8cd835c038bfc785d81cd80922a7b2980051))
|
|
410
|
+
- incorporate account ([47e33e9](https://github/myparcelnl/js-pdk/commit/47e33e9b5ee4ca82a8163010e099bcdc039e271d))
|
|
411
|
+
- support dynamic visibility through generated form fields ([13b981b](https://github/myparcelnl/js-pdk/commit/13b981b7bcc4d13d96e34588f224c405b89a7290))
|
|
412
|
+
|
|
413
|
+
### Bug Fixes
|
|
414
|
+
|
|
415
|
+
- **admin:** improve shipment options form ([22a643e](https://github/myparcelnl/js-pdk/commit/22a643eac08605d453f3dd04a2fbc0d100fd4068))
|
|
416
|
+
- **core:** properly pass form to order actions ([d66fae0](https://github/myparcelnl/js-pdk/commit/d66fae05e58ef37a66063daeefae7499b42a4d21))
|
|
417
|
+
- fix carrier settings [wip] ([a888f4f](https://github/myparcelnl/js-pdk/commit/a888f4f0c16250b7b0634d27dabb8ff6afb65307))
|
|
418
|
+
- fix webhook connection logic ([7010a59](https://github/myparcelnl/js-pdk/commit/7010a590844e819942b0dab7d145bf65fc02a64b))
|
|
419
|
+
- improve account settings ([8f8e138](https://github/myparcelnl/js-pdk/commit/8f8e138940d5e9e99cd0a073ed98870f503e05af))
|
|
420
|
+
- improve carrier settings ([7327032](https://github/myparcelnl/js-pdk/commit/7327032619befdd3b2a5b3a46645b6406046172e))
|
|
421
|
+
- improve context query ([2dd5eec](https://github/myparcelnl/js-pdk/commit/2dd5eec3f62716b931d1955adb5094a4455ae867))
|
|
422
|
+
- improve shipment labels styling and logic ([f83da88](https://github/myparcelnl/js-pdk/commit/f83da88b9194a7cbddd6ca88aa587fc53b83b363))
|
|
423
|
+
- make split between backend and frontend endpoints ([ce5ab02](https://github/myparcelnl/js-pdk/commit/ce5ab0284ff41f1b920a8ad60af31b24c7faaa42))
|
|
424
|
+
- rename card to box ([5e874f2](https://github/myparcelnl/js-pdk/commit/5e874f2a6207690ada336770161b678a16a2beba))
|
|
425
|
+
- update plugin settings ([544b372](https://github/myparcelnl/js-pdk/commit/544b372aa0a5994b977e7a786d2cf4a3a608fbf8))
|
|
426
|
+
- use context query ([89d9e0a](https://github/myparcelnl/js-pdk/commit/89d9e0ab96a25068fd01ba4b62725aec15759cd9))
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare enum Variant {
|
|
2
|
+
Primary = "primary",
|
|
3
|
+
Secondary = "secondary",
|
|
4
|
+
Info = "info",
|
|
5
|
+
Warning = "warning",
|
|
6
|
+
Error = "error",
|
|
7
|
+
Success = "success"
|
|
8
|
+
}
|
|
9
|
+
export declare enum Size {
|
|
10
|
+
ExtraSmall = "xs",
|
|
11
|
+
Small = "sm",
|
|
12
|
+
Medium = "md",
|
|
13
|
+
Large = "lg",
|
|
14
|
+
ExtraLarge = "xl"
|
|
15
|
+
}
|
|
16
|
+
export declare enum Status {
|
|
17
|
+
Error = "error",
|
|
18
|
+
Pending = "pending",
|
|
19
|
+
Success = "success",
|
|
20
|
+
Warning = "warning"
|
|
21
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare enum TriState {
|
|
2
|
+
Inherit = -1,
|
|
3
|
+
On = 1,
|
|
4
|
+
Off = 0
|
|
5
|
+
}
|
|
6
|
+
export declare enum SortType {
|
|
7
|
+
Ascending = "asc",
|
|
8
|
+
Descending = "desc"
|
|
9
|
+
}
|
|
10
|
+
export declare enum AdminContextKey {
|
|
11
|
+
Global = "global",
|
|
12
|
+
Dynamic = "dynamic",
|
|
13
|
+
OrderData = "orderData",
|
|
14
|
+
PluginSettingsView = "pluginSettingsView",
|
|
15
|
+
ProductData = "productData",
|
|
16
|
+
ProductSettingsView = "productSettingsView",
|
|
17
|
+
Instance = "instance"
|
|
18
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Endpoints in global context.
|
|
3
|
+
*
|
|
4
|
+
* @see Plugin.ModelContextGlobalContext.endpoints
|
|
5
|
+
* @see https://github.com/myparcelnl/pdk/blob/main/config/actions.php
|
|
6
|
+
*/
|
|
7
|
+
export declare enum BackendEndpoint {
|
|
8
|
+
/**
|
|
9
|
+
* Get context.
|
|
10
|
+
*/
|
|
11
|
+
FetchContext = "fetchContext",
|
|
12
|
+
/**
|
|
13
|
+
* Delete account.
|
|
14
|
+
*/
|
|
15
|
+
DeleteAccount = "deleteAccount",
|
|
16
|
+
/**
|
|
17
|
+
* Update account.
|
|
18
|
+
*/
|
|
19
|
+
UpdateAccount = "updateAccount",
|
|
20
|
+
/**
|
|
21
|
+
* Get order data from the plugin.
|
|
22
|
+
*/
|
|
23
|
+
FetchOrders = "fetchOrders",
|
|
24
|
+
/**
|
|
25
|
+
* Tells the plugin to update the orders by fetching data from MyParcel.
|
|
26
|
+
*/
|
|
27
|
+
UpdateOrders = "updateOrders",
|
|
28
|
+
/**
|
|
29
|
+
* Export orders to MyParcel as shipments or orders, depending on the plugin settings.
|
|
30
|
+
*/
|
|
31
|
+
ExportOrders = "exportOrders",
|
|
32
|
+
/**
|
|
33
|
+
* Print all shipments belonging to the given orders.
|
|
34
|
+
*/
|
|
35
|
+
PrintOrders = "printOrders",
|
|
36
|
+
/**
|
|
37
|
+
* Delete given shipments.
|
|
38
|
+
*/
|
|
39
|
+
DeleteShipments = "deleteShipments",
|
|
40
|
+
/**
|
|
41
|
+
* Print given shipments.
|
|
42
|
+
*/
|
|
43
|
+
PrintShipments = "printShipments",
|
|
44
|
+
/**
|
|
45
|
+
* Tell the plugin to update given shipments by fetching data from MyParcel.
|
|
46
|
+
*/
|
|
47
|
+
UpdateShipments = "updateShipments",
|
|
48
|
+
/**
|
|
49
|
+
* Get shipment data from the plugin.
|
|
50
|
+
*/
|
|
51
|
+
FetchShipments = "fetchShipments",
|
|
52
|
+
/**
|
|
53
|
+
* Create return shipments
|
|
54
|
+
*/
|
|
55
|
+
ExportReturn = "exportReturn",
|
|
56
|
+
/**
|
|
57
|
+
* Fetch a product from the plugin.
|
|
58
|
+
*/
|
|
59
|
+
FetchProducts = "fetchProducts",
|
|
60
|
+
/**
|
|
61
|
+
* Update plugin settings.
|
|
62
|
+
*/
|
|
63
|
+
UpdatePluginSettings = "updatePluginSettings",
|
|
64
|
+
/**
|
|
65
|
+
* Update product settings
|
|
66
|
+
*/
|
|
67
|
+
UpdateProductSettings = "updateProductSettings",
|
|
68
|
+
CreateWebhooks = "createWebhooks",
|
|
69
|
+
DeleteWebhooks = "deleteWebhooks",
|
|
70
|
+
FetchWebhooks = "fetchWebhooks",
|
|
71
|
+
/**
|
|
72
|
+
* Debug actions.
|
|
73
|
+
*/
|
|
74
|
+
DownloadLogs = "downloadLogs",
|
|
75
|
+
SwitchToAcceptanceApi = "switchToAcceptanceApi",
|
|
76
|
+
SwitchToProductionApi = "switchToProductionApi"
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Endpoints in checkout context.
|
|
80
|
+
*
|
|
81
|
+
* @see Plugin.ModelContextCheckoutContext.endpoints
|
|
82
|
+
* @see https://github.com/myparcelnl/pdk/blob/main/config/actions.php
|
|
83
|
+
*/
|
|
84
|
+
export declare enum FrontendEndpoint {
|
|
85
|
+
/**
|
|
86
|
+
* Get checkout context.
|
|
87
|
+
*/
|
|
88
|
+
FetchCheckoutContext = "fetchCheckoutContext",
|
|
89
|
+
/**
|
|
90
|
+
* Proxy for listing addresses through the Microservice.
|
|
91
|
+
*/
|
|
92
|
+
ProxyAddressesList = "proxyAddressList",
|
|
93
|
+
/**
|
|
94
|
+
* Proxy for validating addresses through the Microservice.
|
|
95
|
+
*/
|
|
96
|
+
ProxyAddressValidate = "proxyAddressValidate"
|
|
97
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type EndpointDefinition } from '@myparcel-dev/sdk';
|
|
2
|
+
import { type Plugin } from './php-pdk.types';
|
|
3
|
+
export interface PdkEndpointDefinition extends EndpointDefinition {
|
|
4
|
+
formattedResponse?: unknown;
|
|
5
|
+
}
|
|
6
|
+
export type ExtractEndpointDefinition<E extends string, D extends PdkEndpointDefinition> = Extract<D, {
|
|
7
|
+
name: E;
|
|
8
|
+
}>;
|
|
9
|
+
export type PdkEndpointResponse<E extends string, D extends PdkEndpointDefinition> = ExtractEndpointDefinition<E, D> extends {
|
|
10
|
+
formattedResponse: infer R;
|
|
11
|
+
} ? R : ExtractEndpointDefinition<E, D>['response'];
|
|
12
|
+
export type PdkEndpointParameters<E extends string, D extends PdkEndpointDefinition> = ExtractEndpointDefinition<E, D>['parameters'];
|
|
13
|
+
export type EndpointObject<E extends string> = Record<E, Plugin.AbstractEndpointRequest>;
|