@contember/engine-content-api 1.1.0-rc.3 → 1.1.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.
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=insertSequence.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insertSequence.test.d.ts","sourceRoot":"","sources":["../../../../../../tests/cases/integration/graphQlDb/insert/insertSequence.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const schema_definition_1 = require("@contember/schema-definition");
4
+ const tags_1 = require("../../../../src/tags");
5
+ const vitest_1 = require("vitest");
6
+ const engine_api_tester_1 = require("@contember/engine-api-tester");
7
+ var SeqModel;
8
+ (function (SeqModel) {
9
+ class Order {
10
+ constructor() {
11
+ this.seqId = schema_definition_1.SchemaDefinition.intColumn().sequence().notNull();
12
+ }
13
+ }
14
+ SeqModel.Order = Order;
15
+ })(SeqModel || (SeqModel = {}));
16
+ (0, vitest_1.test)('insert author with id', async () => {
17
+ const schema = schema_definition_1.SchemaDefinition.createModel(SeqModel);
18
+ await (0, engine_api_tester_1.executeDbTest)({
19
+ schema: schema,
20
+ query: (0, tags_1.GQL) `
21
+ mutation {
22
+ createOrder(data: {}) {
23
+ node {
24
+ seqId
25
+ }
26
+ }
27
+ }`,
28
+ seed: [],
29
+ return: {
30
+ createOrder: {
31
+ node: {
32
+ seqId: 1,
33
+ },
34
+ },
35
+ },
36
+ });
37
+ });
38
+ //# sourceMappingURL=insertSequence.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insertSequence.test.js","sourceRoot":"","sources":["../../../../../../tests/cases/integration/graphQlDb/insert/insertSequence.test.ts"],"names":[],"mappings":";;AAAA,oEAAsE;AACtE,+CAA0C;AAC1C,mCAA6B;AAC7B,oEAA4D;AAE5D,IAAU,QAAQ,CAIjB;AAJD,WAAU,QAAQ;IACjB,MAAa,KAAK;QAAlB;YACC,UAAK,GAAG,oCAAG,CAAC,SAAS,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,EAAE,CAAA;QAC7C,CAAC;KAAA;IAFY,cAAK,QAEjB,CAAA;AACF,CAAC,EAJS,QAAQ,KAAR,QAAQ,QAIjB;AAED,IAAA,aAAI,EAAC,uBAAuB,EAAE,KAAK,IAAI,EAAE;IACxC,MAAM,MAAM,GAAG,oCAAG,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAA;IACxC,MAAM,IAAA,iCAAa,EAAC;QACnB,MAAM,EAAE,MAAM;QACd,KAAK,EAAE,IAAA,UAAG,EAAA;;;;;;;YAOA;QACV,IAAI,EAAE,EAAE;QACR,MAAM,EAAE;YACP,WAAW,EAAE;gBACZ,IAAI,EAAE;oBACL,KAAK,EAAE,CAAC;iBACR;aACD;SACD;KACD,CAAC,CAAA;AACH,CAAC,CAAC,CAAA"}