@pintahub/database-schemas 6.0.1 → 6.0.2
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from 'mongoose';
|
|
2
|
-
/** Outbound Shopify GraphQL Admin API request log — paired with WebhookEvent (which captures inbound). TTL:
|
|
2
|
+
/** Outbound Shopify GraphQL Admin API request log — paired with WebhookEvent (which captures inbound). TTL: 1 hour. */
|
|
3
3
|
declare const ShopifyAPIRequest: Schema<any, import("mongoose").Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Record<string, any>, import("mongoose").Document<unknown, {}, Record<string, any>, {
|
|
4
4
|
id: string;
|
|
5
5
|
}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & Omit<Record<string, any> & Required<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShopifyAPIRequest.d.ts","sourceRoot":"","sources":["../../src/schemas/ShopifyAPIRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAA;AAC/B,
|
|
1
|
+
{"version":3,"file":"ShopifyAPIRequest.d.ts","sourceRoot":"","sources":["../../src/schemas/ShopifyAPIRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAA;AAC/B,uHAAuH;AACvH,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;EAuErB,CAAA;AAIF,SAAS,iBAAiB,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const mongoose_1 = require("mongoose");
|
|
3
|
-
/** Outbound Shopify GraphQL Admin API request log — paired with WebhookEvent (which captures inbound). TTL:
|
|
3
|
+
/** Outbound Shopify GraphQL Admin API request log — paired with WebhookEvent (which captures inbound). TTL: 1 hour. */
|
|
4
4
|
const ShopifyAPIRequest = new mongoose_1.Schema({
|
|
5
5
|
/** @ref Store */
|
|
6
6
|
store: {
|
|
@@ -55,11 +55,11 @@ const ShopifyAPIRequest = new mongoose_1.Schema({
|
|
|
55
55
|
type: String,
|
|
56
56
|
trim: true,
|
|
57
57
|
},
|
|
58
|
-
/** TTL: auto-expires after
|
|
58
|
+
/** TTL: auto-expires after 1 hour */
|
|
59
59
|
created_at: {
|
|
60
60
|
type: Date,
|
|
61
61
|
default: Date.now,
|
|
62
|
-
expires: 3_600
|
|
62
|
+
expires: 3_600,
|
|
63
63
|
},
|
|
64
64
|
});
|
|
65
65
|
ShopifyAPIRequest.index({ store: 1, status: 1, created_at: -1 });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShopifyAPIRequest.js","sourceRoot":"","sources":["../../src/schemas/ShopifyAPIRequest.ts"],"names":[],"mappings":";AAAA,uCAA+B;AAC/B,
|
|
1
|
+
{"version":3,"file":"ShopifyAPIRequest.js","sourceRoot":"","sources":["../../src/schemas/ShopifyAPIRequest.ts"],"names":[],"mappings":";AAAA,uCAA+B;AAC/B,uHAAuH;AACvH,MAAM,iBAAiB,GAAG,IAAI,iBAAM,CAAsB;IACtD,iBAAiB;IACjB,KAAK,EAAE;QACH,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ;QAC3B,GAAG,EAAE,OAAO;QACZ,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,IAAI;KACjB;IAED,0CAA0C;IAC1C,WAAW,EAAE;QACT,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,IAAI;KACb;IAED,6BAA6B;IAC7B,sBAAsB,EAAE;QACpB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,IAAI;KACb;IAED,gCAAgC;IAChC,eAAe,EAAE;QACb,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,IAAI;KACd;IAED,iDAAiD;IACjD,WAAW,EAAE;QACT,IAAI,EAAE,MAAM;KACf;IAED,yDAAyD;IACzD,UAAU,EAAE;QACR,sCAAsC;QACtC,WAAW,EAAE,EAAC,IAAI,EAAE,MAAM,EAAC;QAE3B,yCAAyC;QACzC,cAAc,EAAE,EAAC,IAAI,EAAE,MAAM,EAAC;QAE9B,wDAAwD;QACxD,kBAAkB,EAAE,EAAC,IAAI,EAAE,MAAM,EAAC;QAElC,sDAAsD;QACtD,YAAY,EAAE,EAAC,IAAI,EAAE,MAAM,EAAC;KAC/B;IAED;;;;OAIG;IACH,MAAM,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC;QAC3B,OAAO,EAAE,SAAS;QAClB,KAAK,EAAE,IAAI;KACd;IAED,yCAAyC;IACzC,aAAa,EAAE;QACX,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,IAAI;KACb;IAED,qCAAqC;IACrC,UAAU,EAAE;QACR,IAAI,EAAE,IAAI;QACV,OAAO,EAAE,IAAI,CAAC,GAAG;QACjB,OAAO,EAAE,KAAK;KACjB;CACJ,CAAC,CAAA;AAEF,iBAAiB,CAAC,KAAK,CAAC,EAAC,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC,EAAC,CAAC,CAAA;AAE9D,iBAAS,iBAAiB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pintahub/database-schemas",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.2",
|
|
4
4
|
"description": "Pintahub MongoDB schemas (TypeScript). Compatible with both schemis (CJS) and schemas-ts (ESM) resolvers.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|