@objectql/sdk 1.7.3 → 1.8.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @objectql/driver-remote
2
2
 
3
+ ## 1.8.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Patch release with documentation updates and bug fixes
8
+ - Updated dependencies
9
+ - @objectql/types@1.8.1
10
+
11
+ ## 1.8.0
12
+
13
+ ### Minor Changes
14
+
15
+ - Release minor version 1.8.0
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+ - @objectql/types@1.8.0
21
+
3
22
  ## 1.7.3
4
23
 
5
24
  ### Patch Changes
package/LICENSE CHANGED
@@ -1,118 +1,21 @@
1
- # PolyForm Shield License 1.0.0
2
-
3
- <https://polyformproject.org/licenses/shield/1.0.0>
4
-
5
- ## Acceptance
6
-
7
- In order to get any license under these terms, you must agree
8
- to them as both strict obligations and conditions to all
9
- your licenses.
10
-
11
- ## Copyright License
12
-
13
- The licensor grants you a copyright license for the
14
- software to do everything you might do with the software
15
- that would otherwise infringe the licensor's copyright
16
- in it for any permitted purpose. However, you may
17
- only distribute the software according to [Distribution
18
- License](#distribution-license) and make changes or new works
19
- based on the software according to [Changes and New Works
20
- License](#changes-and-new-works-license).
21
-
22
- ## Distribution License
23
-
24
- The licensor grants you an additional copyright license
25
- to distribute copies of the software. Your license
26
- to distribute covers distributing the software with
27
- changes and new works permitted by [Changes and New Works
28
- License](#changes-and-new-works-license).
29
-
30
- ## Notices
31
-
32
- You must ensure that anyone who gets a copy of any part of
33
- the software from you also gets a copy of these terms or the
34
- URL for them above, as well as copies of any plain-text lines
35
- beginning with `Required Notice:` that the licensor provided
36
- with the software. For example:
37
-
38
- > Required Notice: Copyright ObjectQL Contributors (https://github.com/objectql)
39
-
40
- ## Changes and New Works License
41
-
42
- The licensor grants you an additional copyright license to
43
- make changes and new works based on the software for any
44
- permitted purpose.
45
-
46
- ## Patent License
47
-
48
- The licensor grants you a patent license for the software that
49
- covers patent claims the licensor can license, or becomes able
50
- to license, that you would infringe by using the software.
51
-
52
- ## Fair Use
53
-
54
- You may have "fair use" rights for the software under the
55
- law. These terms do not limit them.
56
-
57
- ## No Other Rights
58
-
59
- These terms do not allow you to sublicense or transfer any of
60
- your licenses to anyone else, or prevent the licensor from
61
- granting licenses to anyone else. These terms do not imply
62
- any other licenses.
63
-
64
- ## Patent Defense
65
-
66
- If you make any written claim that the software infringes or
67
- contributes to infringement of any patent, your patent license
68
- for the software granted under these terms ends immediately. If
69
- your company makes such a claim, your patent license ends
70
- immediately for work on behalf of your company.
71
-
72
- ## Violations
73
-
74
- The first time you are notified in writing that you have
75
- violated any of these terms, or done anything with the software
76
- not covered by your licenses, your licenses can nonetheless
77
- continue if you come into full compliance with these terms,
78
- and take practical steps to correct past violations, within
79
- 32 days of receiving notice. Otherwise, all your licenses
80
- end immediately.
81
-
82
- ## No Liability
83
-
84
- ***As far as the law allows, the software comes as is, without
85
- any warranty or condition, and the licensor will not be liable
86
- to you for any damages arising out of these terms or the use
87
- or nature of the software, under any kind of legal claim.***
88
-
89
- ## Definitions
90
-
91
- The **licensor** is the individual or entity offering these
92
- terms, and the **software** is the software the licensor makes
93
- available under these terms.
94
-
95
- **You** refers to the individual or entity agreeing to these
96
- terms.
97
-
98
- **Your company** is any legal entity, sole proprietorship,
99
- or other kind of organization that you work for, plus all
100
- organizations that have control over, are under the control of,
101
- or are under common control with that organization. **Control**
102
- means ownership of substantially all the assets of an entity,
103
- or the power to direct its management and policies by vote,
104
- contract, or otherwise. Control can be direct or indirect.
105
-
106
- **Your licenses** are all the licenses granted to you for the
107
- software under these terms.
108
-
109
- **Use** means anything you do with the software requiring one
110
- of your licenses.
111
-
112
- **Permitted purpose** means any purpose other than competing
113
- with the licensor or any product the licensor or its affiliates
114
- provides using the software.
115
-
116
- ---
117
-
118
- Required Notice: Copyright (c) 2026 ObjectQL Contributors (https://github.com/objectql)
1
+ MIT License
2
+
3
+ Copyright (c) 2026 ObjectQL Contributors (https://github.com/objectql)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.d.ts CHANGED
@@ -9,4 +9,7 @@ export declare class RemoteDriver implements Driver {
9
9
  update(objectName: string, id: string | number, data: any, options?: any): Promise<any>;
10
10
  delete(objectName: string, id: string | number, options?: any): Promise<any>;
11
11
  count(objectName: string, filters: any, options?: any): Promise<number>;
12
+ createMany(objectName: string, data: any[], options?: any): Promise<any>;
13
+ updateMany(objectName: string, filters: any, data: any, options?: any): Promise<any>;
14
+ deleteMany(objectName: string, filters: any, options?: any): Promise<any>;
12
15
  }
package/dist/index.js CHANGED
@@ -45,6 +45,15 @@ class RemoteDriver {
45
45
  async count(objectName, filters, options) {
46
46
  return this.request('count', objectName, filters);
47
47
  }
48
+ async createMany(objectName, data, options) {
49
+ return this.request('createMany', objectName, data);
50
+ }
51
+ async updateMany(objectName, filters, data, options) {
52
+ return this.request('updateMany', objectName, { filters, data });
53
+ }
54
+ async deleteMany(objectName, filters, options) {
55
+ return this.request('deleteMany', objectName, { filters });
56
+ }
48
57
  }
49
58
  exports.RemoteDriver = RemoteDriver;
50
59
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAEA,MAAa,YAAY;IACrB,YAAoB,OAAe;QAAf,YAAO,GAAP,OAAO,CAAQ;IAAG,CAAC;IAE/B,KAAK,CAAC,OAAO,CAAC,EAAU,EAAE,UAAkB,EAAE,IAAS;QAC3D,iFAAiF;QACjF,2CAA2C;QAC3C,MAAM,QAAQ,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,eAAe,CAAC;QAEnE,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,QAAQ,EAAE;YAC9B,MAAM,EAAE,MAAM;YACd,OAAO,EAAE;gBACL,cAAc,EAAE,kBAAkB;aACrC;YACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;gBACjB,EAAE;gBACF,MAAM,EAAE,UAAU;gBAClB,IAAI;aACP,CAAC;SACL,CAAC,CAAC;QAEH,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,IAAI,EAAE,CAAC;QAE9B,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YACb,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,UAAkB,EAAE,KAAU,EAAE,OAAa;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC;IACnD,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,UAAkB,EAAE,EAAmB,EAAE,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CAAC,OAAO,CAAC,QAAQ,EAAE,UAAU,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,UAAkB,EAAE,OAAY,EAAE,OAAa;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,UAAkB,EAAE,IAAW,EAAE,OAAa;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC;IACxD,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,UAAkB,EAAE,OAAY,EAAE,IAAS,EAAE,OAAa;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,UAAU,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IACrE,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,UAAkB,EAAE,OAAY,EAAE,OAAa;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,UAAU,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;CACJ;AAjED,oCAiEC"}
package/jest.config.js ADDED
@@ -0,0 +1,13 @@
1
+ module.exports = {
2
+ preset: 'ts-jest',
3
+ testEnvironment: 'node',
4
+ testMatch: ['**/test/**/*.test.ts'],
5
+ moduleNameMapper: {
6
+ '^@objectql/(.*)$': '<rootDir>/../$1/src',
7
+ },
8
+ transform: {
9
+ '^.+\\.ts$': ['ts-jest', {
10
+ isolatedModules: true,
11
+ }],
12
+ },
13
+ };
package/package.json CHANGED
@@ -1,17 +1,18 @@
1
1
  {
2
2
  "name": "@objectql/sdk",
3
- "version": "1.7.3",
4
- "license": "PolyForm-Shield-1.0.0",
3
+ "version": "1.8.1",
4
+ "license": "MIT",
5
5
  "description": "Remote/HTTP Driver for ObjectQL",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "dependencies": {
9
- "@objectql/types": "1.7.3"
9
+ "@objectql/types": "1.8.1"
10
10
  },
11
11
  "devDependencies": {
12
12
  "typescript": "^5.3.0"
13
13
  },
14
14
  "scripts": {
15
- "build": "tsc"
15
+ "build": "tsc",
16
+ "test": "jest"
16
17
  }
17
18
  }
package/src/index.ts CHANGED
@@ -53,4 +53,16 @@ export class RemoteDriver implements Driver {
53
53
  async count(objectName: string, filters: any, options?: any): Promise<number> {
54
54
  return this.request('count', objectName, filters);
55
55
  }
56
+
57
+ async createMany(objectName: string, data: any[], options?: any): Promise<any> {
58
+ return this.request('createMany', objectName, data);
59
+ }
60
+
61
+ async updateMany(objectName: string, filters: any, data: any, options?: any): Promise<any> {
62
+ return this.request('updateMany', objectName, { filters, data });
63
+ }
64
+
65
+ async deleteMany(objectName: string, filters: any, options?: any): Promise<any> {
66
+ return this.request('deleteMany', objectName, { filters });
67
+ }
56
68
  }