suiteportal 0.0.1 → 0.1.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/dist/cli/index.js +5 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/client/index.cjs +102 -0
- package/dist/client/index.cjs.map +1 -0
- package/dist/client/index.d.cts +2 -0
- package/dist/client/index.d.ts +2 -0
- package/dist/client/index.js +68 -0
- package/dist/client/index.js.map +1 -0
- package/package.json +10 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/cli.ts"],"sourcesContent":["// Facade CLI entry — delegates to @suiteportal/cli\nimport '@suiteportal/cli';\n"],"mappings":";;;AACA,OAAO;","names":[]}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var src_exports = {};
|
|
22
|
+
__export(src_exports, {
|
|
23
|
+
AuthError: () => import_connector6.AuthError,
|
|
24
|
+
ModelDelegate: () => import_client_runtime.ModelDelegate,
|
|
25
|
+
NetSuiteClient: () => import_connector.NetSuiteClient,
|
|
26
|
+
NetSuiteError: () => import_connector6.NetSuiteError,
|
|
27
|
+
RateLimitError: () => import_connector6.RateLimitError,
|
|
28
|
+
RateLimiter: () => import_connector5.RateLimiter,
|
|
29
|
+
SuitePortalClient: () => import_client_runtime.SuitePortalClient,
|
|
30
|
+
TimeoutError: () => import_connector6.TimeoutError,
|
|
31
|
+
buildCountQuery: () => import_client_runtime2.buildCountQuery,
|
|
32
|
+
buildJoins: () => import_client_runtime2.buildJoins,
|
|
33
|
+
buildOrderBy: () => import_client_runtime2.buildOrderBy,
|
|
34
|
+
buildSelect: () => import_client_runtime2.buildSelect,
|
|
35
|
+
buildSuiteQL: () => import_client_runtime2.buildSuiteQL,
|
|
36
|
+
buildWhere: () => import_client_runtime2.buildWhere,
|
|
37
|
+
clearSchemaCache: () => import_client_runtime.clearSchemaCache,
|
|
38
|
+
createClient: () => import_client_runtime.createClient,
|
|
39
|
+
createRecord: () => import_connector3.createRecord,
|
|
40
|
+
deleteRecord: () => import_connector3.deleteRecord,
|
|
41
|
+
deriveBaseUrl: () => import_connector4.deriveBaseUrl,
|
|
42
|
+
escapeIdentifier: () => import_client_runtime2.escapeIdentifier,
|
|
43
|
+
escapeList: () => import_client_runtime2.escapeList,
|
|
44
|
+
escapeValue: () => import_client_runtime2.escapeValue,
|
|
45
|
+
executeSuiteQL: () => import_connector2.executeSuiteQL,
|
|
46
|
+
executeSuiteQLPaginated: () => import_connector2.executeSuiteQLPaginated,
|
|
47
|
+
getRealm: () => import_connector4.getRealm,
|
|
48
|
+
getRecord: () => import_connector3.getRecord,
|
|
49
|
+
isRetryableStatus: () => import_connector6.isRetryableStatus,
|
|
50
|
+
loadSchema: () => import_client_runtime.loadSchema,
|
|
51
|
+
nestIncludedRows: () => import_client_runtime2.nestIncludedRows,
|
|
52
|
+
resolveConfig: () => import_connector4.resolveConfig,
|
|
53
|
+
updateRecord: () => import_connector3.updateRecord,
|
|
54
|
+
upsertRecord: () => import_connector3.upsertRecord,
|
|
55
|
+
withRetry: () => import_connector5.withRetry
|
|
56
|
+
});
|
|
57
|
+
module.exports = __toCommonJS(src_exports);
|
|
58
|
+
var import_client_runtime = require("@suiteportal/client-runtime");
|
|
59
|
+
var import_client_runtime2 = require("@suiteportal/client-runtime");
|
|
60
|
+
var import_connector = require("@suiteportal/connector");
|
|
61
|
+
var import_connector2 = require("@suiteportal/connector");
|
|
62
|
+
var import_connector3 = require("@suiteportal/connector");
|
|
63
|
+
var import_connector4 = require("@suiteportal/connector");
|
|
64
|
+
var import_connector5 = require("@suiteportal/connector");
|
|
65
|
+
var import_connector6 = require("@suiteportal/connector");
|
|
66
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
67
|
+
0 && (module.exports = {
|
|
68
|
+
AuthError,
|
|
69
|
+
ModelDelegate,
|
|
70
|
+
NetSuiteClient,
|
|
71
|
+
NetSuiteError,
|
|
72
|
+
RateLimitError,
|
|
73
|
+
RateLimiter,
|
|
74
|
+
SuitePortalClient,
|
|
75
|
+
TimeoutError,
|
|
76
|
+
buildCountQuery,
|
|
77
|
+
buildJoins,
|
|
78
|
+
buildOrderBy,
|
|
79
|
+
buildSelect,
|
|
80
|
+
buildSuiteQL,
|
|
81
|
+
buildWhere,
|
|
82
|
+
clearSchemaCache,
|
|
83
|
+
createClient,
|
|
84
|
+
createRecord,
|
|
85
|
+
deleteRecord,
|
|
86
|
+
deriveBaseUrl,
|
|
87
|
+
escapeIdentifier,
|
|
88
|
+
escapeList,
|
|
89
|
+
escapeValue,
|
|
90
|
+
executeSuiteQL,
|
|
91
|
+
executeSuiteQLPaginated,
|
|
92
|
+
getRealm,
|
|
93
|
+
getRecord,
|
|
94
|
+
isRetryableStatus,
|
|
95
|
+
loadSchema,
|
|
96
|
+
nestIncludedRows,
|
|
97
|
+
resolveConfig,
|
|
98
|
+
updateRecord,
|
|
99
|
+
upsertRecord,
|
|
100
|
+
withRetry
|
|
101
|
+
});
|
|
102
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["// Core ORM client\nexport {\n SuitePortalClient,\n createClient,\n ModelDelegate,\n loadSchema,\n clearSchemaCache,\n} from '@suiteportal/client-runtime';\n\nexport type {\n ClientOptions,\n FilterOperator,\n WhereInput,\n SelectInput,\n OrderByInput,\n IncludeInput,\n FindManyArgs,\n FindFirstArgs,\n CountArgs,\n CreateArgs,\n UpdateArgs,\n DeleteArgs,\n UpsertArgs,\n} from '@suiteportal/client-runtime';\n\n// Query builders (advanced use)\nexport {\n buildSuiteQL,\n buildCountQuery,\n buildWhere,\n buildSelect,\n buildOrderBy,\n buildJoins,\n nestIncludedRows,\n escapeValue,\n escapeIdentifier,\n escapeList,\n} from '@suiteportal/client-runtime';\n\n// NetSuite connector\nexport { NetSuiteClient } from '@suiteportal/connector';\nexport { executeSuiteQL, executeSuiteQLPaginated } from '@suiteportal/connector';\nexport { createRecord, updateRecord, deleteRecord, upsertRecord, getRecord } from '@suiteportal/connector';\nexport { resolveConfig, deriveBaseUrl, getRealm } from '@suiteportal/connector';\nexport { withRetry, RateLimiter } from '@suiteportal/connector';\n\n// Errors\nexport {\n NetSuiteError,\n AuthError,\n RateLimitError,\n TimeoutError,\n isRetryableStatus,\n} from '@suiteportal/connector';\n\n// Connector types\nexport type {\n NetSuiteConfig,\n ResolvedConfig,\n RetryOptions,\n PaginationOptions,\n SuiteQLRow,\n SuiteQLResult,\n SuiteQLResponse,\n OAuthParams,\n RequestOptions,\n NetSuiteResponse,\n} from '@suiteportal/connector';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,4BAMO;AAmBP,IAAAA,yBAWO;AAGP,uBAA+B;AAC/B,IAAAC,oBAAwD;AACxD,IAAAA,oBAAkF;AAClF,IAAAA,oBAAuD;AACvD,IAAAA,oBAAuC;AAGvC,IAAAA,oBAMO;","names":["import_client_runtime","import_connector"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { ClientOptions, CountArgs, CreateArgs, DeleteArgs, FilterOperator, FindFirstArgs, FindManyArgs, IncludeInput, ModelDelegate, OrderByInput, SelectInput, SuitePortalClient, UpdateArgs, UpsertArgs, WhereInput, buildCountQuery, buildJoins, buildOrderBy, buildSelect, buildSuiteQL, buildWhere, clearSchemaCache, createClient, escapeIdentifier, escapeList, escapeValue, loadSchema, nestIncludedRows } from '@suiteportal/client-runtime';
|
|
2
|
+
export { AuthError, NetSuiteClient, NetSuiteConfig, NetSuiteError, NetSuiteResponse, OAuthParams, PaginationOptions, RateLimitError, RateLimiter, RequestOptions, ResolvedConfig, RetryOptions, SuiteQLResponse, SuiteQLResult, SuiteQLRow, TimeoutError, createRecord, deleteRecord, deriveBaseUrl, executeSuiteQL, executeSuiteQLPaginated, getRealm, getRecord, isRetryableStatus, resolveConfig, updateRecord, upsertRecord, withRetry } from '@suiteportal/connector';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { ClientOptions, CountArgs, CreateArgs, DeleteArgs, FilterOperator, FindFirstArgs, FindManyArgs, IncludeInput, ModelDelegate, OrderByInput, SelectInput, SuitePortalClient, UpdateArgs, UpsertArgs, WhereInput, buildCountQuery, buildJoins, buildOrderBy, buildSelect, buildSuiteQL, buildWhere, clearSchemaCache, createClient, escapeIdentifier, escapeList, escapeValue, loadSchema, nestIncludedRows } from '@suiteportal/client-runtime';
|
|
2
|
+
export { AuthError, NetSuiteClient, NetSuiteConfig, NetSuiteError, NetSuiteResponse, OAuthParams, PaginationOptions, RateLimitError, RateLimiter, RequestOptions, ResolvedConfig, RetryOptions, SuiteQLResponse, SuiteQLResult, SuiteQLRow, TimeoutError, createRecord, deleteRecord, deriveBaseUrl, executeSuiteQL, executeSuiteQLPaginated, getRealm, getRecord, isRetryableStatus, resolveConfig, updateRecord, upsertRecord, withRetry } from '@suiteportal/connector';
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// src/index.ts
|
|
2
|
+
import {
|
|
3
|
+
SuitePortalClient,
|
|
4
|
+
createClient,
|
|
5
|
+
ModelDelegate,
|
|
6
|
+
loadSchema,
|
|
7
|
+
clearSchemaCache
|
|
8
|
+
} from "@suiteportal/client-runtime";
|
|
9
|
+
import {
|
|
10
|
+
buildSuiteQL,
|
|
11
|
+
buildCountQuery,
|
|
12
|
+
buildWhere,
|
|
13
|
+
buildSelect,
|
|
14
|
+
buildOrderBy,
|
|
15
|
+
buildJoins,
|
|
16
|
+
nestIncludedRows,
|
|
17
|
+
escapeValue,
|
|
18
|
+
escapeIdentifier,
|
|
19
|
+
escapeList
|
|
20
|
+
} from "@suiteportal/client-runtime";
|
|
21
|
+
import { NetSuiteClient } from "@suiteportal/connector";
|
|
22
|
+
import { executeSuiteQL, executeSuiteQLPaginated } from "@suiteportal/connector";
|
|
23
|
+
import { createRecord, updateRecord, deleteRecord, upsertRecord, getRecord } from "@suiteportal/connector";
|
|
24
|
+
import { resolveConfig, deriveBaseUrl, getRealm } from "@suiteportal/connector";
|
|
25
|
+
import { withRetry, RateLimiter } from "@suiteportal/connector";
|
|
26
|
+
import {
|
|
27
|
+
NetSuiteError,
|
|
28
|
+
AuthError,
|
|
29
|
+
RateLimitError,
|
|
30
|
+
TimeoutError,
|
|
31
|
+
isRetryableStatus
|
|
32
|
+
} from "@suiteportal/connector";
|
|
33
|
+
export {
|
|
34
|
+
AuthError,
|
|
35
|
+
ModelDelegate,
|
|
36
|
+
NetSuiteClient,
|
|
37
|
+
NetSuiteError,
|
|
38
|
+
RateLimitError,
|
|
39
|
+
RateLimiter,
|
|
40
|
+
SuitePortalClient,
|
|
41
|
+
TimeoutError,
|
|
42
|
+
buildCountQuery,
|
|
43
|
+
buildJoins,
|
|
44
|
+
buildOrderBy,
|
|
45
|
+
buildSelect,
|
|
46
|
+
buildSuiteQL,
|
|
47
|
+
buildWhere,
|
|
48
|
+
clearSchemaCache,
|
|
49
|
+
createClient,
|
|
50
|
+
createRecord,
|
|
51
|
+
deleteRecord,
|
|
52
|
+
deriveBaseUrl,
|
|
53
|
+
escapeIdentifier,
|
|
54
|
+
escapeList,
|
|
55
|
+
escapeValue,
|
|
56
|
+
executeSuiteQL,
|
|
57
|
+
executeSuiteQLPaginated,
|
|
58
|
+
getRealm,
|
|
59
|
+
getRecord,
|
|
60
|
+
isRetryableStatus,
|
|
61
|
+
loadSchema,
|
|
62
|
+
nestIncludedRows,
|
|
63
|
+
resolveConfig,
|
|
64
|
+
updateRecord,
|
|
65
|
+
upsertRecord,
|
|
66
|
+
withRetry
|
|
67
|
+
};
|
|
68
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["// Core ORM client\nexport {\n SuitePortalClient,\n createClient,\n ModelDelegate,\n loadSchema,\n clearSchemaCache,\n} from '@suiteportal/client-runtime';\n\nexport type {\n ClientOptions,\n FilterOperator,\n WhereInput,\n SelectInput,\n OrderByInput,\n IncludeInput,\n FindManyArgs,\n FindFirstArgs,\n CountArgs,\n CreateArgs,\n UpdateArgs,\n DeleteArgs,\n UpsertArgs,\n} from '@suiteportal/client-runtime';\n\n// Query builders (advanced use)\nexport {\n buildSuiteQL,\n buildCountQuery,\n buildWhere,\n buildSelect,\n buildOrderBy,\n buildJoins,\n nestIncludedRows,\n escapeValue,\n escapeIdentifier,\n escapeList,\n} from '@suiteportal/client-runtime';\n\n// NetSuite connector\nexport { NetSuiteClient } from '@suiteportal/connector';\nexport { executeSuiteQL, executeSuiteQLPaginated } from '@suiteportal/connector';\nexport { createRecord, updateRecord, deleteRecord, upsertRecord, getRecord } from '@suiteportal/connector';\nexport { resolveConfig, deriveBaseUrl, getRealm } from '@suiteportal/connector';\nexport { withRetry, RateLimiter } from '@suiteportal/connector';\n\n// Errors\nexport {\n NetSuiteError,\n AuthError,\n RateLimitError,\n TimeoutError,\n isRetryableStatus,\n} from '@suiteportal/connector';\n\n// Connector types\nexport type {\n NetSuiteConfig,\n ResolvedConfig,\n RetryOptions,\n PaginationOptions,\n SuiteQLRow,\n SuiteQLResult,\n SuiteQLResponse,\n OAuthParams,\n RequestOptions,\n NetSuiteResponse,\n} from '@suiteportal/connector';\n"],"mappings":";AACA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAmBP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAGP,SAAS,sBAAsB;AAC/B,SAAS,gBAAgB,+BAA+B;AACxD,SAAS,cAAc,cAAc,cAAc,cAAc,iBAAiB;AAClF,SAAS,eAAe,eAAe,gBAAgB;AACvD,SAAS,WAAW,mBAAmB;AAGvC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "suiteportal",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "The NetSuite application layer — typed ORM, CLI tooling, and platform SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,6 +26,15 @@
|
|
|
26
26
|
"files": [
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
|
+
"scripts": {
|
|
30
|
+
"build": "tsup",
|
|
31
|
+
"clean": "rm -rf dist"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@suiteportal/client-runtime": "^0.2.4",
|
|
35
|
+
"@suiteportal/cli": "^0.3.0",
|
|
36
|
+
"@suiteportal/connector": "^0.2.1"
|
|
37
|
+
},
|
|
29
38
|
"publishConfig": {
|
|
30
39
|
"access": "public"
|
|
31
40
|
},
|