@mono-lit/utility 0.0.6 → 0.1.0
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/fetching.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as monoMockDb, n as MonoMockRequest, o as resetMonoMockDb, r as MonoMockResponse, t as MonoMockDb } from "./index-BAy6tbOG.js";
|
|
2
|
-
import { G as OdataFetchTypes, K as TanstackFetchOptions, Q as UseOdataStaticOpts, U as NormalFetchOptions, _ as getPrefetchBridge, a as TryCatchDatasourceParams, d as promiseWrapper, g as MonoPrefetchRequest, h as MonoPrefetchBridge, i as OdataFetchUniqueTypes, n as FetchOverrides, o as createFetcher, r as LoadChunkStoreArgs } from "./index-
|
|
2
|
+
import { G as OdataFetchTypes, K as TanstackFetchOptions, Q as UseOdataStaticOpts, U as NormalFetchOptions, _ as getPrefetchBridge, a as TryCatchDatasourceParams, d as promiseWrapper, g as MonoPrefetchRequest, h as MonoPrefetchBridge, i as OdataFetchUniqueTypes, n as FetchOverrides, o as createFetcher, r as LoadChunkStoreArgs } from "./index-GhC2ux6U.js";
|
|
3
3
|
import DataSource from "devextreme/data/data_source";
|
|
4
4
|
import CustomStore from "devextreme/data/custom_store";
|
|
5
5
|
import ODataStore from "devextreme/data/odata/store";
|
|
@@ -3,7 +3,6 @@ import { NotivueItem, PushOptions } from "notivue";
|
|
|
3
3
|
import { RouteLocationNormalizedLoadedGeneric, Router } from "vue-router";
|
|
4
4
|
import DataSource, { DataSourceOptions } from "devextreme/data/data_source";
|
|
5
5
|
import CustomStore, { CustomStoreOptions } from "devextreme/data/custom_store";
|
|
6
|
-
import { FetchRequestConfig } from "@odata2ts/http-client-fetch";
|
|
7
6
|
import ODataStore, { ODataStoreOptions } from "devextreme/data/odata/store";
|
|
8
7
|
import { DxColumn, DxDataGrid, DxDataGridTypes } from "devextreme-vue/data-grid";
|
|
9
8
|
import * as yup from "yup";
|
|
@@ -44,6 +43,18 @@ type Result<T> = {
|
|
|
44
43
|
};
|
|
45
44
|
declare function createStaticDatasource<T extends AnyObj>(opts: UseOdataStaticOpts<T>): Promise<Result<T>>;
|
|
46
45
|
//#endregion
|
|
46
|
+
//#region ../../node_modules/.pnpm/@odata2ts+http-client-fetch@0.9.0/node_modules/@odata2ts/http-client-fetch/lib/FetchRequestConfig.d.ts
|
|
47
|
+
/**
|
|
48
|
+
* Available config options for end user when making a given request.
|
|
49
|
+
*/
|
|
50
|
+
interface FetchRequestConfig extends Partial<Pick<RequestInit, "credentials" | "cache" | "mode" | "redirect" | "referrerPolicy" | "signal">> {
|
|
51
|
+
headers?: Record<string, string> | Headers;
|
|
52
|
+
/**
|
|
53
|
+
* Add query params.
|
|
54
|
+
*/
|
|
55
|
+
params?: Record<string, string | number | boolean | Array<string | number | boolean>>;
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
47
58
|
//#region src/core/types/notif-action.d.ts
|
|
48
59
|
/** Relaxed button descriptor — no Vuetify dependency. */
|
|
49
60
|
interface MonoNotifButton {
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as MonoSyncTransport, _ as MonoMergeableKey, c as MonoConfig, n as JWTCompleteTokenTypes, o as MonoAppType, t as DefaultJWTTokenTypes, w as MonoTemplate } from "./create-config-B8IhX4ht.js";
|
|
2
2
|
import { a as MonoFetchCookieOptions, i as LocalStorageParams, n as CookieTokenParams, o as NormalFetchOptions$1, r as JWTPayload, s as NormalFetchResult$1, t as CookieParams } from "./types-B6FdB7LJ.js";
|
|
3
3
|
import { a as monoToken, i as monoStorage, n as monoCookie, o as setMonoEventResolver, r as monoJwt, s as CookieApi, t as MonoRequestEvent } from "./universal-BR0O7Qwk.js";
|
|
4
|
-
import { $ as createStaticDatasource, A as ValidateError, B as FetchLoading, C as Format, D as SchemaType, E as SchemaObject, F as ValidationSchemaLike, G as OdataFetchTypes, H as FetchParam, I as Col, J as NotifProps, K as TanstackFetchOptions, L as GroupTemplate, M as ValidateErrorItem, N as ValidateErrorSingle, O as StandardSchemaV1, P as ValidateSchema, Q as UseOdataStaticOpts, R as LoopTemplate, S as FilterExpression, T as Schema, U as NormalFetchOptions, V as FetchOData, W as NormalFetchResult, X as MonoNotifActionTypes, Y as MonoNotifActionProps, Z as MonoNotifButton, _ as getPrefetchBridge, a as TryCatchDatasourceParams, b as CustomSummary, c as extractErrorMessage, d as promiseWrapper, f as tryCatchDatasource, g as MonoPrefetchRequest, h as MonoPrefetchBridge, i as OdataFetchUniqueTypes, j as ValidateErrorComplex, k as StandardSchemaV1Result, l as loadChuckStore, m as useNormalFetch, n as FetchOverrides, o as createFetcher, p as useFetchOData, q as useHelper, r as LoadChunkStoreArgs, s as createUniqueFetcher, t as _default, u as parseDxError, v as setPrefetchBridge, w as HeaderFilter, x as DataGrid, y as OdataMapTypes, z as PathValue } from "./index-
|
|
4
|
+
import { $ as createStaticDatasource, A as ValidateError, B as FetchLoading, C as Format, D as SchemaType, E as SchemaObject, F as ValidationSchemaLike, G as OdataFetchTypes, H as FetchParam, I as Col, J as NotifProps, K as TanstackFetchOptions, L as GroupTemplate, M as ValidateErrorItem, N as ValidateErrorSingle, O as StandardSchemaV1, P as ValidateSchema, Q as UseOdataStaticOpts, R as LoopTemplate, S as FilterExpression, T as Schema, U as NormalFetchOptions, V as FetchOData, W as NormalFetchResult, X as MonoNotifActionTypes, Y as MonoNotifActionProps, Z as MonoNotifButton, _ as getPrefetchBridge, a as TryCatchDatasourceParams, b as CustomSummary, c as extractErrorMessage, d as promiseWrapper, f as tryCatchDatasource, g as MonoPrefetchRequest, h as MonoPrefetchBridge, i as OdataFetchUniqueTypes, j as ValidateErrorComplex, k as StandardSchemaV1Result, l as loadChuckStore, m as useNormalFetch, n as FetchOverrides, o as createFetcher, p as useFetchOData, q as useHelper, r as LoadChunkStoreArgs, s as createUniqueFetcher, t as _default, u as parseDxError, v as setPrefetchBridge, w as HeaderFilter, x as DataGrid, y as OdataMapTypes, z as PathValue } from "./index-GhC2ux6U.js";
|
|
5
5
|
import { InjectionKey, Plugin, Ref } from "vue";
|
|
6
6
|
import { RouteRecordRaw } from "vue-router";
|
|
7
7
|
//#region src/token/client.d.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mono-lit/utility",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "Mono config, fetching, auth/token, Nuxt/Vite integration and shared helpers for the @mono-lit ecosystem.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vue",
|
|
@@ -81,20 +81,20 @@
|
|
|
81
81
|
"registry": "https://registry.npmjs.org/"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
|
-
"@
|
|
85
|
-
"
|
|
86
|
-
"dotenv": "^17.4.2",
|
|
84
|
+
"@unhead/vue": "^3.0.0",
|
|
85
|
+
"dotenv": "^17.4.2 || ^18.0.0",
|
|
87
86
|
"dotenv-cli": "^11.0.0",
|
|
88
87
|
"h3": "^1.15.1",
|
|
89
88
|
"jwt-decode": "^4.0.0",
|
|
90
89
|
"notivue": "^2.4.5",
|
|
91
90
|
"valibot": "^1.0.0",
|
|
92
|
-
"vue": "3.5.
|
|
93
|
-
"vue-router": "5.
|
|
91
|
+
"vue": "^3.5.0",
|
|
92
|
+
"vue-router": "^5.0.0",
|
|
94
93
|
"yup": "^1.7.1",
|
|
95
94
|
"@mono-lit/devextreme": "^0.0.2"
|
|
96
95
|
},
|
|
97
96
|
"devDependencies": {
|
|
97
|
+
"@nuxt/schema": "^4.6.2",
|
|
98
98
|
"@odata2ts/http-client-fetch": "0.9.0",
|
|
99
99
|
"@odata2ts/odata-query-objects": "0.28.1",
|
|
100
100
|
"@tsdown/css": "0.23.1",
|
|
@@ -110,22 +110,18 @@
|
|
|
110
110
|
"vite": "8.3.4",
|
|
111
111
|
"vue-tsc": "~3.2.0",
|
|
112
112
|
"yup": "1.7.1",
|
|
113
|
-
"@mono-lit/helper": "0.0
|
|
113
|
+
"@mono-lit/helper": "0.1.0"
|
|
114
114
|
},
|
|
115
115
|
"dependencies": {
|
|
116
116
|
"@nuxt/kit": "^4.6.2",
|
|
117
|
-
"@nuxt/schema": "^4.6.2",
|
|
118
117
|
"c12": "4.0.0-beta.5",
|
|
119
|
-
"citty": "0.1.6",
|
|
118
|
+
"citty": "^0.1.6",
|
|
120
119
|
"devextreme": "25.1.6",
|
|
121
120
|
"devextreme-vue": "25.1.6",
|
|
122
|
-
"pkg-types": "2.3.1",
|
|
123
|
-
"unstorage": "1.17.5"
|
|
121
|
+
"pkg-types": "^2.3.1",
|
|
122
|
+
"unstorage": "^1.17.5"
|
|
124
123
|
},
|
|
125
124
|
"peerDependenciesMeta": {
|
|
126
|
-
"@odata2ts/http-client-fetch": {
|
|
127
|
-
"optional": true
|
|
128
|
-
},
|
|
129
125
|
"h3": {
|
|
130
126
|
"optional": true
|
|
131
127
|
},
|
|
@@ -137,6 +133,9 @@
|
|
|
137
133
|
},
|
|
138
134
|
"valibot": {
|
|
139
135
|
"optional": true
|
|
136
|
+
},
|
|
137
|
+
"@unhead/vue": {
|
|
138
|
+
"optional": true
|
|
140
139
|
}
|
|
141
140
|
},
|
|
142
141
|
"scripts": {
|