@medusajs/types 1.12.0-snapshot-20240528082138 → 1.12.0-snapshot-20240528143001
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth/providers/google.d.ts +7 -0
- package/dist/auth/providers/google.d.ts.map +1 -0
- package/dist/auth/providers/google.js +3 -0
- package/dist/auth/providers/google.js.map +1 -0
- package/dist/auth/providers/index.d.ts +1 -0
- package/dist/auth/providers/index.d.ts.map +1 -1
- package/dist/auth/providers/index.js +1 -0
- package/dist/auth/providers/index.js.map +1 -1
- package/dist/common/config-module.d.ts +28 -28
- package/dist/common/config-module.d.ts.map +1 -1
- package/dist/http/product/admin.d.ts +66 -0
- package/dist/http/product/admin.d.ts.map +1 -1
- package/package.json +1 -1
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"google.d.ts","sourceRoot":"","sources":["../../../src/auth/providers/google.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,yBAAyB;IACxC,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"google.js","sourceRoot":"","sources":["../../../src/auth/providers/google.ts"],"names":[],"mappings":""}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/auth/providers/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/auth/providers/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA"}
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./emailpass"), exports);
|
18
|
+
__exportStar(require("./google"), exports);
|
18
19
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/auth/providers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/auth/providers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B;AAC3B,2CAAwB"}
|
@@ -110,7 +110,7 @@ export type HttpCompressionOptions = {
|
|
110
110
|
*/
|
111
111
|
export type ProjectConfigOptions = {
|
112
112
|
/**
|
113
|
-
* The name of the database to connect to. If specified in `
|
113
|
+
* The name of the database to connect to. If specified in `databaseUrl`, then it’s not required to include it.
|
114
114
|
*
|
115
115
|
* Make sure to create the PostgreSQL database before using it. You can check how to create a database in
|
116
116
|
* [PostgreSQL's documentation](https://www.postgresql.org/docs/current/sql-createdatabase.html).
|
@@ -119,7 +119,7 @@ export type ProjectConfigOptions = {
|
|
119
119
|
* ```js title="medusa-config.js"
|
120
120
|
* module.exports = {
|
121
121
|
* projectConfig: {
|
122
|
-
*
|
122
|
+
* databaseName: process.env.DATABASE_DATABASE ||
|
123
123
|
* "medusa-store",
|
124
124
|
* // ...
|
125
125
|
* },
|
@@ -127,7 +127,7 @@ export type ProjectConfigOptions = {
|
|
127
127
|
* }
|
128
128
|
* ```
|
129
129
|
*/
|
130
|
-
|
130
|
+
databaseName?: string;
|
131
131
|
/**
|
132
132
|
* The connection URL of the database. The format of the connection URL for PostgreSQL is:
|
133
133
|
*
|
@@ -157,21 +157,21 @@ export type ProjectConfigOptions = {
|
|
157
157
|
* ```js title="medusa-config.js"
|
158
158
|
* module.exports = {
|
159
159
|
* projectConfig: {
|
160
|
-
*
|
160
|
+
* databaseUrl: process.env.DATABASE_URL,
|
161
161
|
* // ...
|
162
162
|
* },
|
163
163
|
* // ...
|
164
164
|
* }
|
165
165
|
* ```
|
166
166
|
*/
|
167
|
-
|
167
|
+
databaseUrl?: string;
|
168
168
|
/**
|
169
169
|
* The database schema to connect to. This is not required to provide if you’re using the default schema, which is `public`.
|
170
170
|
*
|
171
171
|
* ```js title="medusa-config.js"
|
172
172
|
* module.exports = {
|
173
173
|
* projectConfig: {
|
174
|
-
*
|
174
|
+
* databaseSchema: process.env.DATABASE_SCHEMA ||
|
175
175
|
* "custom",
|
176
176
|
* // ...
|
177
177
|
* },
|
@@ -179,7 +179,7 @@ export type ProjectConfigOptions = {
|
|
179
179
|
* }
|
180
180
|
* ```
|
181
181
|
*/
|
182
|
-
|
182
|
+
databaseSchema?: string;
|
183
183
|
/**
|
184
184
|
* This configuration specifies what database messages to log. Its value can be one of the following:
|
185
185
|
*
|
@@ -193,7 +193,7 @@ export type ProjectConfigOptions = {
|
|
193
193
|
* ```js title="medusa-config.js"
|
194
194
|
* module.exports = {
|
195
195
|
* projectConfig: {
|
196
|
-
*
|
196
|
+
* databaseLogging: [
|
197
197
|
* "query", "error",
|
198
198
|
* ],
|
199
199
|
* // ...
|
@@ -202,7 +202,7 @@ export type ProjectConfigOptions = {
|
|
202
202
|
* }
|
203
203
|
* ```
|
204
204
|
*/
|
205
|
-
|
205
|
+
databaseLogging: LoggerOptions;
|
206
206
|
/**
|
207
207
|
* @ignore
|
208
208
|
* @deprecated
|
@@ -210,7 +210,7 @@ export type ProjectConfigOptions = {
|
|
210
210
|
* @privateRemarks
|
211
211
|
* only postgres is supported, so this config has no effect
|
212
212
|
*/
|
213
|
-
|
213
|
+
databaseType?: string;
|
214
214
|
/**
|
215
215
|
* An object that includes additional configurations to pass to the database connection. You can pass any configuration. One defined configuration to pass is
|
216
216
|
* `ssl` which enables support for TLS/SSL connections.
|
@@ -222,7 +222,7 @@ export type ProjectConfigOptions = {
|
|
222
222
|
* ```js title="medusa-config.js"
|
223
223
|
* module.exports = {
|
224
224
|
* projectConfig: {
|
225
|
-
*
|
225
|
+
* databaseExtra:
|
226
226
|
* process.env.NODE_ENV !== "development"
|
227
227
|
* ? { ssl: { rejectUnauthorized: false } }
|
228
228
|
* : {},
|
@@ -232,7 +232,7 @@ export type ProjectConfigOptions = {
|
|
232
232
|
* }
|
233
233
|
* ```
|
234
234
|
*/
|
235
|
-
|
235
|
+
databaseExtra?: Record<string, unknown> & {
|
236
236
|
/**
|
237
237
|
* Configure support for TLS/SSL connection
|
238
238
|
*/
|
@@ -254,7 +254,7 @@ export type ProjectConfigOptions = {
|
|
254
254
|
* ```js title="medusa-config.js"
|
255
255
|
* module.exports = {
|
256
256
|
* projectConfig: {
|
257
|
-
*
|
257
|
+
* databaseDriverOptions:
|
258
258
|
* process.env.NODE_ENV !== "development"
|
259
259
|
* ? { connection: { ssl: { rejectUnauthorized: false } } }
|
260
260
|
* : {},
|
@@ -264,7 +264,7 @@ export type ProjectConfigOptions = {
|
|
264
264
|
* }
|
265
265
|
* ```
|
266
266
|
*/
|
267
|
-
|
267
|
+
databaseDriverOptions?: Record<string, unknown> & {
|
268
268
|
connection?: {
|
269
269
|
/**
|
270
270
|
* Configure support for TLS/SSL connection
|
@@ -298,7 +298,7 @@ export type ProjectConfigOptions = {
|
|
298
298
|
* ```js title="medusa-config.js"
|
299
299
|
* module.exports = {
|
300
300
|
* projectConfig: {
|
301
|
-
*
|
301
|
+
* redisUrl: process.env.REDIS_URL ||
|
302
302
|
* "redis://localhost:6379",
|
303
303
|
* // ...
|
304
304
|
* },
|
@@ -306,7 +306,7 @@ export type ProjectConfigOptions = {
|
|
306
306
|
* }
|
307
307
|
* ```
|
308
308
|
*/
|
309
|
-
|
309
|
+
redisUrl?: string;
|
310
310
|
/**
|
311
311
|
* The prefix set on all keys stored in Redis. The default value is `sess:`.
|
312
312
|
*
|
@@ -316,7 +316,7 @@ export type ProjectConfigOptions = {
|
|
316
316
|
* ```js title="medusa-config.js"
|
317
317
|
* module.exports = {
|
318
318
|
* projectConfig: {
|
319
|
-
*
|
319
|
+
* redisPrefix: process.env.REDIS_PREFIX ||
|
320
320
|
* "medusa:",
|
321
321
|
* // ...
|
322
322
|
* },
|
@@ -324,7 +324,7 @@ export type ProjectConfigOptions = {
|
|
324
324
|
* }
|
325
325
|
* ```
|
326
326
|
*/
|
327
|
-
|
327
|
+
redisPrefix?: string;
|
328
328
|
/**
|
329
329
|
* An object of options to pass ioredis. You can refer to [ioredis’s RedisOptions documentation](https://redis.github.io/ioredis/index.html#RedisOptions)
|
330
330
|
* for the list of available options.
|
@@ -333,7 +333,7 @@ export type ProjectConfigOptions = {
|
|
333
333
|
* ```js title="medusa-config.js"
|
334
334
|
* module.exports = {
|
335
335
|
* projectConfig: {
|
336
|
-
*
|
336
|
+
* redisOptions: {
|
337
337
|
* connectionName: process.env.REDIS_CONNECTION_NAME ||
|
338
338
|
* "medusa",
|
339
339
|
* },
|
@@ -343,7 +343,7 @@ export type ProjectConfigOptions = {
|
|
343
343
|
* }
|
344
344
|
* ```
|
345
345
|
*/
|
346
|
-
|
346
|
+
redisOptions?: RedisOptions;
|
347
347
|
/**
|
348
348
|
* An object of options to pass to [express-session](https://www.npmjs.com/package/express-session).
|
349
349
|
*
|
@@ -351,7 +351,7 @@ export type ProjectConfigOptions = {
|
|
351
351
|
* ```js title="medusa-config.js"
|
352
352
|
* module.exports = {
|
353
353
|
* projectConfig: {
|
354
|
-
*
|
354
|
+
* sessionOptions: {
|
355
355
|
* name: process.env.SESSION_NAME ||
|
356
356
|
* "custom",
|
357
357
|
* },
|
@@ -361,7 +361,7 @@ export type ProjectConfigOptions = {
|
|
361
361
|
* }
|
362
362
|
* ```
|
363
363
|
*/
|
364
|
-
|
364
|
+
sessionOptions?: SessionOptions;
|
365
365
|
/**
|
366
366
|
* Configure HTTP compression from the application layer. If you have access to the HTTP server, the recommended approach would be to enable it there.
|
367
367
|
* However, some platforms don't offer access to the HTTP layer and in those cases, this is a good alternative.
|
@@ -372,7 +372,7 @@ export type ProjectConfigOptions = {
|
|
372
372
|
* ```js title="medusa-config.js"
|
373
373
|
* module.exports = {
|
374
374
|
* projectConfig: {
|
375
|
-
*
|
375
|
+
* httpCompression: {
|
376
376
|
* enabled: true,
|
377
377
|
* level: 6,
|
378
378
|
* memLevel: 8,
|
@@ -387,7 +387,7 @@ export type ProjectConfigOptions = {
|
|
387
387
|
* @deprecated use {@link http }'s `compression` property instead.
|
388
388
|
*
|
389
389
|
*/
|
390
|
-
|
390
|
+
httpCompression?: HttpCompressionOptions;
|
391
391
|
/**
|
392
392
|
* Configure the number of staged jobs that are polled from the database. Default is `1000`.
|
393
393
|
*
|
@@ -395,14 +395,14 @@ export type ProjectConfigOptions = {
|
|
395
395
|
* ```js title="medusa-config.js"
|
396
396
|
* module.exports = {
|
397
397
|
* projectConfig: {
|
398
|
-
*
|
398
|
+
* jobsBatchSize: 100
|
399
399
|
* // ...
|
400
400
|
* },
|
401
401
|
* // ...
|
402
402
|
* }
|
403
403
|
* ```
|
404
404
|
*/
|
405
|
-
|
405
|
+
jobsBatchSize?: number;
|
406
406
|
/**
|
407
407
|
* Configure the application's worker mode. Default is `shared`.
|
408
408
|
*
|
@@ -416,14 +416,14 @@ export type ProjectConfigOptions = {
|
|
416
416
|
* ```js title="medusa-config.js"
|
417
417
|
* module.exports = {
|
418
418
|
* projectConfig: {
|
419
|
-
*
|
419
|
+
* workerMode: "shared"
|
420
420
|
* // ...
|
421
421
|
* },
|
422
422
|
* // ...
|
423
423
|
* }
|
424
424
|
* ```
|
425
425
|
*/
|
426
|
-
|
426
|
+
workerMode?: "shared" | "worker" | "server";
|
427
427
|
/**
|
428
428
|
* Configure the application's http-specific settings
|
429
429
|
*
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"config-module.d.ts","sourceRoot":"","sources":["../../src/common/config-module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,gBAAgB,CAAA;AAEvB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAExC;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,IAAI,MAAM,EAAE,CAAA;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,YAAY,CAAA;CAC9C,CAAA;AAED;;;;GAIG;AACH,KAAK,cAAc,GAAG;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAC5B,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;;;;;;;;;;;;;;;OAiBG;IACH,
|
1
|
+
{"version":3,"file":"config-module.d.ts","sourceRoot":"","sources":["../../src/common/config-module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,gBAAgB,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OAoCG;IACH,OAAO,CAAC,EAAE,MAAM,CACd,MAAM,EACN,OAAO,GAAG,OAAO,CAAC,yBAAyB,GAAG,yBAAyB,CAAC,CACzE,CAAA;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAAC,CAAA;CAC/C,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChC,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA"}
|
@@ -30,4 +30,70 @@ export interface AdminProductVariantFilters extends BaseProductVariantFilters {
|
|
30
30
|
}
|
31
31
|
export interface AdminProductCategoryFilters extends BaseProductCategoryFilters {
|
32
32
|
}
|
33
|
+
export interface AdminCreateProductVariantPrice {
|
34
|
+
currency_code: string;
|
35
|
+
amount: number;
|
36
|
+
min_quantity?: number;
|
37
|
+
max_quantity?: number;
|
38
|
+
}
|
39
|
+
export interface AdminCreateProductVariant {
|
40
|
+
title: string;
|
41
|
+
sku?: string;
|
42
|
+
ean?: string;
|
43
|
+
upc?: string;
|
44
|
+
barcode?: string;
|
45
|
+
hs_code?: string;
|
46
|
+
mid_code?: string;
|
47
|
+
allow_backorder?: boolean;
|
48
|
+
manage_inventory?: boolean;
|
49
|
+
variant_rank?: number;
|
50
|
+
weight?: number;
|
51
|
+
length?: number;
|
52
|
+
height?: number;
|
53
|
+
width?: number;
|
54
|
+
origin_country?: string;
|
55
|
+
material?: string;
|
56
|
+
metadata?: Record<string, any>;
|
57
|
+
prices: AdminCreateProductVariantPrice[];
|
58
|
+
options?: Record<string, any>;
|
59
|
+
}
|
60
|
+
export interface AdminCreateProduct {
|
61
|
+
title: string;
|
62
|
+
subtitle?: string;
|
63
|
+
description?: string;
|
64
|
+
is_giftcard?: boolean;
|
65
|
+
discountable?: boolean;
|
66
|
+
images?: {
|
67
|
+
url: string;
|
68
|
+
}[];
|
69
|
+
thumbnail?: string;
|
70
|
+
handle?: string;
|
71
|
+
status?: string;
|
72
|
+
type_id?: string | null;
|
73
|
+
collection_id?: string | null;
|
74
|
+
categories?: {
|
75
|
+
id: string;
|
76
|
+
}[];
|
77
|
+
tags?: {
|
78
|
+
id?: string;
|
79
|
+
value?: string;
|
80
|
+
}[];
|
81
|
+
options?: {
|
82
|
+
title?: string;
|
83
|
+
values?: string[];
|
84
|
+
}[];
|
85
|
+
variants?: AdminCreateProductVariant[];
|
86
|
+
sales_channels?: {
|
87
|
+
id: string;
|
88
|
+
}[];
|
89
|
+
weight?: number;
|
90
|
+
length?: number;
|
91
|
+
height?: number;
|
92
|
+
width?: number;
|
93
|
+
hs_code?: string;
|
94
|
+
mid_code?: string;
|
95
|
+
origin_country?: string;
|
96
|
+
material?: string;
|
97
|
+
metadata?: Record<string, any>;
|
98
|
+
}
|
33
99
|
//# sourceMappingURL=admin.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../../src/http/product/admin.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,mBAAmB,EACnB,0BAA0B,EAC1B,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,wBAAwB,EACxB,sBAAsB,EACtB,cAAc,EACd,qBAAqB,EACrB,eAAe,EACf,sBAAsB,EACtB,kBAAkB,EAClB,yBAAyB,EAC1B,MAAM,UAAU,CAAA;AAEjB,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,WAAW,EAAE,YAAY,CAAC;IACnE,UAAU,CAAC,EAAE,oBAAoB,EAAE,CAAA;CACpC;AAED,MAAM,WAAW,oBAAqB,SAAQ,mBAAmB;IAC/D,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,CAAC,EAAE,OAAO,CA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