wcz-test 7.0.0 → 7.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 +1 @@
1
- {"version":3,"file":"node-sqlite-dialect-CfkKTzbw.js","sources":["../node_modules/better-auth/dist/adapters/kysely-adapter/node-sqlite-dialect.mjs"],"sourcesContent":["import { CompiledQuery, DEFAULT_MIGRATION_LOCK_TABLE, DEFAULT_MIGRATION_TABLE, DefaultQueryCompiler, sql } from \"kysely\";\n\n//#region src/adapters/kysely-adapter/node-sqlite-dialect.ts\nvar NodeSqliteAdapter = class {\n\tget supportsCreateIfNotExists() {\n\t\treturn true;\n\t}\n\tget supportsTransactionalDdl() {\n\t\treturn false;\n\t}\n\tget supportsReturning() {\n\t\treturn true;\n\t}\n\tasync acquireMigrationLock() {}\n\tasync releaseMigrationLock() {}\n\tget supportsOutput() {\n\t\treturn true;\n\t}\n};\nvar NodeSqliteDriver = class {\n\t#config;\n\t#connectionMutex = new ConnectionMutex();\n\t#db;\n\t#connection;\n\tconstructor(config) {\n\t\tthis.#config = { ...config };\n\t}\n\tasync init() {\n\t\tthis.#db = this.#config.database;\n\t\tthis.#connection = new NodeSqliteConnection(this.#db);\n\t\tif (this.#config.onCreateConnection) await this.#config.onCreateConnection(this.#connection);\n\t}\n\tasync acquireConnection() {\n\t\tawait this.#connectionMutex.lock();\n\t\treturn this.#connection;\n\t}\n\tasync beginTransaction(connection) {\n\t\tawait connection.executeQuery(CompiledQuery.raw(\"begin\"));\n\t}\n\tasync commitTransaction(connection) {\n\t\tawait connection.executeQuery(CompiledQuery.raw(\"commit\"));\n\t}\n\tasync rollbackTransaction(connection) {\n\t\tawait connection.executeQuery(CompiledQuery.raw(\"rollback\"));\n\t}\n\tasync releaseConnection() {\n\t\tthis.#connectionMutex.unlock();\n\t}\n\tasync destroy() {\n\t\tthis.#db?.close();\n\t}\n};\nvar NodeSqliteConnection = class {\n\t#db;\n\tconstructor(db) {\n\t\tthis.#db = db;\n\t}\n\texecuteQuery(compiledQuery) {\n\t\tconst { sql: sql$1, parameters } = compiledQuery;\n\t\tconst rows = this.#db.prepare(sql$1).all(...parameters);\n\t\treturn Promise.resolve({ rows });\n\t}\n\tasync *streamQuery() {\n\t\tthrow new Error(\"Streaming query is not supported by SQLite driver.\");\n\t}\n};\nvar ConnectionMutex = class {\n\t#promise;\n\t#resolve;\n\tasync lock() {\n\t\twhile (this.#promise) await this.#promise;\n\t\tthis.#promise = new Promise((resolve) => {\n\t\t\tthis.#resolve = resolve;\n\t\t});\n\t}\n\tunlock() {\n\t\tconst resolve = this.#resolve;\n\t\tthis.#promise = void 0;\n\t\tthis.#resolve = void 0;\n\t\tresolve?.();\n\t}\n};\nvar NodeSqliteIntrospector = class {\n\t#db;\n\tconstructor(db) {\n\t\tthis.#db = db;\n\t}\n\tasync getSchemas() {\n\t\treturn [];\n\t}\n\tasync getTables(options = { withInternalKyselyTables: false }) {\n\t\tlet query = this.#db.selectFrom(\"sqlite_schema\").where(\"type\", \"=\", \"table\").where(\"name\", \"not like\", \"sqlite_%\").select(\"name\").$castTo();\n\t\tif (!options.withInternalKyselyTables) query = query.where(\"name\", \"!=\", DEFAULT_MIGRATION_TABLE).where(\"name\", \"!=\", DEFAULT_MIGRATION_LOCK_TABLE);\n\t\tconst tables = await query.execute();\n\t\treturn Promise.all(tables.map(({ name }) => this.#getTableMetadata(name)));\n\t}\n\tasync getMetadata(options) {\n\t\treturn { tables: await this.getTables(options) };\n\t}\n\tasync #getTableMetadata(table) {\n\t\tconst db = this.#db;\n\t\tconst autoIncrementCol = (await db.selectFrom(\"sqlite_master\").where(\"name\", \"=\", table).select(\"sql\").$castTo().execute())[0]?.sql?.split(/[\\(\\),]/)?.find((it) => it.toLowerCase().includes(\"autoincrement\"))?.split(/\\s+/)?.[0]?.replace(/[\"`]/g, \"\");\n\t\treturn {\n\t\t\tname: table,\n\t\t\tcolumns: (await db.selectFrom(sql`pragma_table_info(${table})`.as(\"table_info\")).select([\n\t\t\t\t\"name\",\n\t\t\t\t\"type\",\n\t\t\t\t\"notnull\",\n\t\t\t\t\"dflt_value\"\n\t\t\t]).execute()).map((col) => ({\n\t\t\t\tname: col.name,\n\t\t\t\tdataType: col.type,\n\t\t\t\tisNullable: !col.notnull,\n\t\t\t\tisAutoIncrementing: col.name === autoIncrementCol,\n\t\t\t\thasDefaultValue: col.dflt_value != null\n\t\t\t})),\n\t\t\tisView: true\n\t\t};\n\t}\n};\nvar NodeSqliteQueryCompiler = class extends DefaultQueryCompiler {\n\tgetCurrentParameterPlaceholder() {\n\t\treturn \"?\";\n\t}\n\tgetLeftIdentifierWrapper() {\n\t\treturn \"\\\"\";\n\t}\n\tgetRightIdentifierWrapper() {\n\t\treturn \"\\\"\";\n\t}\n\tgetAutoIncrement() {\n\t\treturn \"autoincrement\";\n\t}\n};\nvar NodeSqliteDialect = class {\n\t#config;\n\tconstructor(config) {\n\t\tthis.#config = { ...config };\n\t}\n\tcreateDriver() {\n\t\treturn new NodeSqliteDriver(this.#config);\n\t}\n\tcreateQueryCompiler() {\n\t\treturn new NodeSqliteQueryCompiler();\n\t}\n\tcreateAdapter() {\n\t\treturn new NodeSqliteAdapter();\n\t}\n\tcreateIntrospector(db) {\n\t\treturn new NodeSqliteIntrospector(db);\n\t}\n};\n\n//#endregion\nexport { NodeSqliteDialect };\n//# sourceMappingURL=node-sqlite-dialect.mjs.map"],"names":["NodeSqliteAdapter","NodeSqliteDriver","#config","#connectionMutex","ConnectionMutex","#db","#connection","config","NodeSqliteConnection","connection","CompiledQuery","db","compiledQuery","sql$1","parameters","rows","#promise","#resolve","resolve","NodeSqliteIntrospector","options","query","DEFAULT_MIGRATION_TABLE","DEFAULT_MIGRATION_LOCK_TABLE","tables","name","#getTableMetadata","table","autoIncrementCol","it","sql","col","NodeSqliteQueryCompiler","DefaultQueryCompiler","NodeSqliteDialect"],"mappings":";AAGA,IAAIA,IAAoB,MAAM;AAAA,EAC7B,IAAI,4BAA4B;AAC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ACf,WAAO,IAAIhC,EAAiB;AAAA,EAC7B;AAAA,EACA,mBAAmBW,GAAI;AACtB,WAAO,IAAIQ,EAAuBR,CAAE;AAAA,EACrC;AACD;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"node-sqlite-dialect-CSXFdUmA.js","sources":["../node_modules/better-auth/dist/adapters/kysely-adapter/node-sqlite-dialect.mjs"],"sourcesContent":["import { CompiledQuery, DEFAULT_MIGRATION_LOCK_TABLE, DEFAULT_MIGRATION_TABLE, DefaultQueryCompiler, sql } from \"kysely\";\n\n//#region src/adapters/kysely-adapter/node-sqlite-dialect.ts\nvar NodeSqliteAdapter = class {\n\tget supportsCreateIfNotExists() {\n\t\treturn true;\n\t}\n\tget supportsTransactionalDdl() {\n\t\treturn false;\n\t}\n\tget supportsReturning() {\n\t\treturn true;\n\t}\n\tasync acquireMigrationLock() {}\n\tasync releaseMigrationLock() {}\n\tget supportsOutput() {\n\t\treturn true;\n\t}\n};\nvar NodeSqliteDriver = class {\n\t#config;\n\t#connectionMutex = new ConnectionMutex();\n\t#db;\n\t#connection;\n\tconstructor(config) {\n\t\tthis.#config = { ...config };\n\t}\n\tasync init() {\n\t\tthis.#db = this.#config.database;\n\t\tthis.#connection = new NodeSqliteConnection(this.#db);\n\t\tif (this.#config.onCreateConnection) await this.#config.onCreateConnection(this.#connection);\n\t}\n\tasync acquireConnection() {\n\t\tawait this.#connectionMutex.lock();\n\t\treturn this.#connection;\n\t}\n\tasync beginTransaction(connection) {\n\t\tawait connection.executeQuery(CompiledQuery.raw(\"begin\"));\n\t}\n\tasync commitTransaction(connection) {\n\t\tawait connection.executeQuery(CompiledQuery.raw(\"commit\"));\n\t}\n\tasync rollbackTransaction(connection) {\n\t\tawait connection.executeQuery(CompiledQuery.raw(\"rollback\"));\n\t}\n\tasync releaseConnection() {\n\t\tthis.#connectionMutex.unlock();\n\t}\n\tasync destroy() {\n\t\tthis.#db?.close();\n\t}\n};\nvar NodeSqliteConnection = class {\n\t#db;\n\tconstructor(db) {\n\t\tthis.#db = db;\n\t}\n\texecuteQuery(compiledQuery) {\n\t\tconst { sql: sql$1, parameters } = compiledQuery;\n\t\tconst rows = this.#db.prepare(sql$1).all(...parameters);\n\t\treturn Promise.resolve({ rows });\n\t}\n\tasync *streamQuery() {\n\t\tthrow new Error(\"Streaming query is not supported by SQLite driver.\");\n\t}\n};\nvar ConnectionMutex = class {\n\t#promise;\n\t#resolve;\n\tasync lock() {\n\t\twhile (this.#promise) await this.#promise;\n\t\tthis.#promise = new Promise((resolve) => {\n\t\t\tthis.#resolve = resolve;\n\t\t});\n\t}\n\tunlock() {\n\t\tconst resolve = this.#resolve;\n\t\tthis.#promise = void 0;\n\t\tthis.#resolve = void 0;\n\t\tresolve?.();\n\t}\n};\nvar NodeSqliteIntrospector = class {\n\t#db;\n\tconstructor(db) {\n\t\tthis.#db = db;\n\t}\n\tasync getSchemas() {\n\t\treturn [];\n\t}\n\tasync getTables(options = { withInternalKyselyTables: false }) {\n\t\tlet query = this.#db.selectFrom(\"sqlite_schema\").where(\"type\", \"=\", \"table\").where(\"name\", \"not like\", \"sqlite_%\").select(\"name\").$castTo();\n\t\tif (!options.withInternalKyselyTables) query = query.where(\"name\", \"!=\", DEFAULT_MIGRATION_TABLE).where(\"name\", \"!=\", DEFAULT_MIGRATION_LOCK_TABLE);\n\t\tconst tables = await query.execute();\n\t\treturn Promise.all(tables.map(({ name }) => this.#getTableMetadata(name)));\n\t}\n\tasync getMetadata(options) {\n\t\treturn { tables: await this.getTables(options) };\n\t}\n\tasync #getTableMetadata(table) {\n\t\tconst db = this.#db;\n\t\tconst autoIncrementCol = (await db.selectFrom(\"sqlite_master\").where(\"name\", \"=\", table).select(\"sql\").$castTo().execute())[0]?.sql?.split(/[\\(\\),]/)?.find((it) => it.toLowerCase().includes(\"autoincrement\"))?.split(/\\s+/)?.[0]?.replace(/[\"`]/g, \"\");\n\t\treturn {\n\t\t\tname: table,\n\t\t\tcolumns: (await db.selectFrom(sql`pragma_table_info(${table})`.as(\"table_info\")).select([\n\t\t\t\t\"name\",\n\t\t\t\t\"type\",\n\t\t\t\t\"notnull\",\n\t\t\t\t\"dflt_value\"\n\t\t\t]).execute()).map((col) => ({\n\t\t\t\tname: col.name,\n\t\t\t\tdataType: col.type,\n\t\t\t\tisNullable: !col.notnull,\n\t\t\t\tisAutoIncrementing: col.name === autoIncrementCol,\n\t\t\t\thasDefaultValue: col.dflt_value != null\n\t\t\t})),\n\t\t\tisView: true\n\t\t};\n\t}\n};\nvar NodeSqliteQueryCompiler = class extends DefaultQueryCompiler {\n\tgetCurrentParameterPlaceholder() {\n\t\treturn \"?\";\n\t}\n\tgetLeftIdentifierWrapper() {\n\t\treturn \"\\\"\";\n\t}\n\tgetRightIdentifierWrapper() {\n\t\treturn \"\\\"\";\n\t}\n\tgetAutoIncrement() {\n\t\treturn \"autoincrement\";\n\t}\n};\nvar NodeSqliteDialect = class {\n\t#config;\n\tconstructor(config) {\n\t\tthis.#config = { ...config };\n\t}\n\tcreateDriver() {\n\t\treturn new NodeSqliteDriver(this.#config);\n\t}\n\tcreateQueryCompiler() {\n\t\treturn new NodeSqliteQueryCompiler();\n\t}\n\tcreateAdapter() {\n\t\treturn new NodeSqliteAdapter();\n\t}\n\tcreateIntrospector(db) {\n\t\treturn new NodeSqliteIntrospector(db);\n\t}\n};\n\n//#endregion\nexport { NodeSqliteDialect };\n//# sourceMappingURL=node-sqlite-dialect.mjs.map"],"names":["NodeSqliteAdapter","NodeSqliteDriver","#config","#connectionMutex","ConnectionMutex","#db","#connection","config","NodeSqliteConnection","connection","CompiledQuery","db","compiledQuery","sql$1","parameters","rows","#promise","#resolve","resolve","NodeSqliteIntrospector","options","query","DEFAULT_MIGRATION_TABLE","DEFAULT_MIGRATION_LOCK_TABLE","tables","name","#getTableMetadata","table","autoIncrementCol","it","sql","col","NodeSqliteQueryCompiler","DefaultQueryCompiler","NodeSqliteDialect"],"mappings":";AAGA,IAAIA,IAAoB,MAAM;AAAA,EAC7B,IA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,EACA,gBAAgB;AACf,WAAO,IAAIhC,EAAiB;AAAA,EAC7B;AAAA,EACA,mBAAmBW,GAAI;AACtB,WAAO,IAAIQ,EAAuBR,CAAE;AAAA,EACrC;AACD;","x_google_ignoreList":[0]}
package/dist/queries.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { queryClient } from '../lib/queryClient';
1
2
  import { useApproveApproval } from '../queries/ApprovalHooks';
2
3
  import { useCancelApproval } from '../queries/ApprovalHooks';
3
4
  import { useCreateApproval } from '../queries/ApprovalHooks';
@@ -29,6 +30,8 @@ import { useUpdateFileMeta } from '../queries/FileHooks';
29
30
  import { useUploadFile } from '../queries/FileHooks';
30
31
  import { useWithdrawApproval } from '../queries/ApprovalHooks';
31
32
 
33
+ export { queryClient }
34
+
32
35
  export { useApproveApproval }
33
36
 
34
37
  export { useCancelApproval }
package/dist/queries.js CHANGED
@@ -1,11 +1,11 @@
1
- import { f as Ke, g as Oe, c as we, b as Re, u as Ae, a as We, d as be, e as Me, h as xe } from "./FileHooks-CstZ4QII.js";
1
+ import { QueryClient as g, useQuery as m, useQueryClient as p, useMutation as q } from "@tanstack/react-query";
2
+ import { f as we, g as Re, c as Ae, b as We, u as be, a as Me, d as xe, e as Ce, h as Qe } from "./FileHooks-CstZ4QII.js";
2
3
  import { c as i } from "./compiler-runtime-BNHg76kC.js";
3
- import { useQuery as m, useQueryClient as p, useMutation as q } from "@tanstack/react-query";
4
- import { h as f, t as g } from "./utils-araYIHAE.js";
4
+ import { h as f, t as T } from "./utils-araYIHAE.js";
5
5
  import $ from "zod";
6
- import { a as T } from "./index-Y_pgyGkL.js";
7
- import { A as v, a as F } from "./ApprovalStatus-lESbUD_x.js";
8
- const s = "ps", a = 1e3 * 60 * 60 * 24, ue = (t, n) => {
6
+ import { a as v } from "./index-Y_pgyGkL.js";
7
+ import { A as F, a as _ } from "./ApprovalStatus-lESbUD_x.js";
8
+ const se = new g(), s = "ps", a = 1e3 * 60 * 60 * 24, ae = (t, n) => {
9
9
  const e = i.c(7);
10
10
  let r, l;
11
11
  e[0] !== t ? (r = [s, "employee", "search", t], l = (c) => {
@@ -16,7 +16,7 @@ const s = "ps", a = 1e3 * 60 * 60 * 24, ue = (t, n) => {
16
16
  url: `/${s}/v1/employee?search=${t}`,
17
17
  method: "GET",
18
18
  signal: o
19
- }).then(_);
19
+ }).then(E);
20
20
  }, e[0] = t, e[1] = r, e[2] = l) : (r = e[1], l = e[2]);
21
21
  let u;
22
22
  return e[3] !== n || e[4] !== r || e[5] !== l ? (u = {
@@ -27,7 +27,7 @@ const s = "ps", a = 1e3 * 60 * 60 * 24, ue = (t, n) => {
27
27
  gcTime: a,
28
28
  refetchOnWindowFocus: !1
29
29
  }, e[3] = n, e[4] = r, e[5] = l, e[6] = u) : u = e[6], m(u);
30
- }, se = (t) => {
30
+ }, ce = (t) => {
31
31
  const n = i.c(3);
32
32
  let e;
33
33
  n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = [s, "employee"], n[0] = e) : e = n[0];
@@ -35,12 +35,12 @@ const s = "ps", a = 1e3 * 60 * 60 * 24, ue = (t, n) => {
35
35
  return n[1] !== t ? (r = {
36
36
  ...t,
37
37
  queryKey: e,
38
- queryFn: G,
38
+ queryFn: S,
39
39
  staleTime: a,
40
40
  gcTime: a,
41
41
  refetchOnWindowFocus: !1
42
42
  }, n[1] = t, n[2] = r) : r = n[2], m(r);
43
- }, ae = (t) => {
43
+ }, oe = (t) => {
44
44
  const n = i.c(3);
45
45
  let e;
46
46
  n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = [s, "employee", "active"], n[0] = e) : e = n[0];
@@ -48,12 +48,12 @@ const s = "ps", a = 1e3 * 60 * 60 * 24, ue = (t, n) => {
48
48
  return n[1] !== t ? (r = {
49
49
  ...t,
50
50
  queryKey: e,
51
- queryFn: P,
51
+ queryFn: K,
52
52
  staleTime: a,
53
53
  gcTime: a,
54
54
  refetchOnWindowFocus: !1
55
55
  }, n[1] = t, n[2] = r) : r = n[2], m(r);
56
- }, ce = (t, n) => {
56
+ }, ie = (t, n) => {
57
57
  const e = i.c(7);
58
58
  let r, l;
59
59
  e[0] !== t ? (r = [s, "employee", t], l = (c) => {
@@ -64,7 +64,7 @@ const s = "ps", a = 1e3 * 60 * 60 * 24, ue = (t, n) => {
64
64
  url: `/${s}/v1/employee/${t}`,
65
65
  method: "GET",
66
66
  signal: o
67
- }).then(K);
67
+ }).then(O);
68
68
  }, e[0] = t, e[1] = r, e[2] = l) : (r = e[1], l = e[2]);
69
69
  let u;
70
70
  return e[3] !== n || e[4] !== r || e[5] !== l ? (u = {
@@ -75,7 +75,7 @@ const s = "ps", a = 1e3 * 60 * 60 * 24, ue = (t, n) => {
75
75
  gcTime: a,
76
76
  refetchOnWindowFocus: !1
77
77
  }, e[3] = n, e[4] = r, e[5] = l, e[6] = u) : u = e[6], m(u);
78
- }, oe = (t) => {
78
+ }, fe = (t) => {
79
79
  const n = i.c(3);
80
80
  let e;
81
81
  n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = [s, "employee", "previousIds"], n[0] = e) : e = n[0];
@@ -83,12 +83,12 @@ const s = "ps", a = 1e3 * 60 * 60 * 24, ue = (t, n) => {
83
83
  return n[1] !== t ? (r = {
84
84
  ...t,
85
85
  queryKey: e,
86
- queryFn: w,
86
+ queryFn: R,
87
87
  staleTime: a,
88
88
  gcTime: a,
89
89
  refetchOnWindowFocus: !1
90
90
  }, n[1] = t, n[2] = r) : r = n[2], m(r);
91
- }, ie = (t, n) => {
91
+ }, me = (t, n) => {
92
92
  const e = i.c(7);
93
93
  let r, l;
94
94
  e[0] !== t ? (r = [s, "employee", t, "supervisor"], l = (c) => {
@@ -99,7 +99,7 @@ const s = "ps", a = 1e3 * 60 * 60 * 24, ue = (t, n) => {
99
99
  url: `/${s}/v1/employee/${t}/supervisor`,
100
100
  method: "GET",
101
101
  signal: o
102
- }).then(R);
102
+ }).then(A);
103
103
  }, e[0] = t, e[1] = r, e[2] = l) : (r = e[1], l = e[2]);
104
104
  let u;
105
105
  return e[3] !== n || e[4] !== r || e[5] !== l ? (u = {
@@ -110,7 +110,7 @@ const s = "ps", a = 1e3 * 60 * 60 * 24, ue = (t, n) => {
110
110
  gcTime: a,
111
111
  refetchOnWindowFocus: !1
112
112
  }, e[3] = n, e[4] = r, e[5] = l, e[6] = u) : u = e[6], m(u);
113
- }, fe = (t, n) => {
113
+ }, ye = (t, n) => {
114
114
  const e = i.c(7);
115
115
  let r, l;
116
116
  e[0] !== t ? (r = [s, "employee", t, "subordinates"], l = (c) => {
@@ -121,7 +121,7 @@ const s = "ps", a = 1e3 * 60 * 60 * 24, ue = (t, n) => {
121
121
  url: `/${s}/v1/employee/${t}/subordinates`,
122
122
  method: "GET",
123
123
  signal: o
124
- }).then(A);
124
+ }).then(W);
125
125
  }, e[0] = t, e[1] = r, e[2] = l) : (r = e[1], l = e[2]);
126
126
  let u;
127
127
  return e[3] !== n || e[4] !== r || e[5] !== l ? (u = {
@@ -132,7 +132,7 @@ const s = "ps", a = 1e3 * 60 * 60 * 24, ue = (t, n) => {
132
132
  gcTime: a,
133
133
  refetchOnWindowFocus: !1
134
134
  }, e[3] = n, e[4] = r, e[5] = l, e[6] = u) : u = e[6], m(u);
135
- }, me = (t, n) => {
135
+ }, pe = (t, n) => {
136
136
  const e = i.c(7);
137
137
  let r, l;
138
138
  e[0] !== t ? (r = [s, "employee", t, "manager"], l = (c) => {
@@ -143,7 +143,7 @@ const s = "ps", a = 1e3 * 60 * 60 * 24, ue = (t, n) => {
143
143
  url: `/${s}/v1/employee/${t}/manager`,
144
144
  method: "GET",
145
145
  signal: o
146
- }).then(W);
146
+ }).then(b);
147
147
  }, e[0] = t, e[1] = r, e[2] = l) : (r = e[1], l = e[2]);
148
148
  let u;
149
149
  return e[3] !== n || e[4] !== r || e[5] !== l ? (u = {
@@ -154,7 +154,7 @@ const s = "ps", a = 1e3 * 60 * 60 * 24, ue = (t, n) => {
154
154
  gcTime: a,
155
155
  refetchOnWindowFocus: !1
156
156
  }, e[3] = n, e[4] = r, e[5] = l, e[6] = u) : u = e[6], m(u);
157
- }, ye = (t, n) => {
157
+ }, qe = (t, n) => {
158
158
  const e = i.c(7);
159
159
  let r, l;
160
160
  e[0] !== t ? (r = [s, "employee", t, "generalManager"], l = (c) => {
@@ -165,7 +165,7 @@ const s = "ps", a = 1e3 * 60 * 60 * 24, ue = (t, n) => {
165
165
  url: `/${s}/v1/employee/${t}/generalManager`,
166
166
  method: "GET",
167
167
  signal: o
168
- }).then(b);
168
+ }).then(M);
169
169
  }, e[0] = t, e[1] = r, e[2] = l) : (r = e[1], l = e[2]);
170
170
  let u;
171
171
  return e[3] !== n || e[4] !== r || e[5] !== l ? (u = {
@@ -176,7 +176,7 @@ const s = "ps", a = 1e3 * 60 * 60 * 24, ue = (t, n) => {
176
176
  gcTime: a,
177
177
  refetchOnWindowFocus: !1
178
178
  }, e[3] = n, e[4] = r, e[5] = l, e[6] = u) : u = e[6], m(u);
179
- }, pe = (t) => {
179
+ }, $e = (t) => {
180
180
  const n = i.c(3);
181
181
  let e;
182
182
  n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = [s, "department"], n[0] = e) : e = n[0];
@@ -184,12 +184,12 @@ const s = "ps", a = 1e3 * 60 * 60 * 24, ue = (t, n) => {
184
184
  return n[1] !== t ? (r = {
185
185
  ...t,
186
186
  queryKey: e,
187
- queryFn: x,
187
+ queryFn: C,
188
188
  staleTime: a,
189
189
  gcTime: a,
190
190
  refetchOnWindowFocus: !1
191
191
  }, n[1] = t, n[2] = r) : r = n[2], m(r);
192
- }, qe = (t, n) => {
192
+ }, he = (t, n) => {
193
193
  const e = i.c(7);
194
194
  let r, l;
195
195
  e[0] !== t ? (r = [s, "department", t], l = (c) => {
@@ -200,7 +200,7 @@ const s = "ps", a = 1e3 * 60 * 60 * 24, ue = (t, n) => {
200
200
  url: `/${s}/v1/department/${t}`,
201
201
  method: "GET",
202
202
  signal: o
203
- }).then(C);
203
+ }).then(Q);
204
204
  }, e[0] = t, e[1] = r, e[2] = l) : (r = e[1], l = e[2]);
205
205
  let u;
206
206
  return e[3] !== n || e[4] !== r || e[5] !== l ? (u = {
@@ -211,7 +211,7 @@ const s = "ps", a = 1e3 * 60 * 60 * 24, ue = (t, n) => {
211
211
  gcTime: a,
212
212
  refetchOnWindowFocus: !1
213
213
  }, e[3] = n, e[4] = r, e[5] = l, e[6] = u) : u = e[6], m(u);
214
- }, $e = (t, n) => {
214
+ }, de = (t, n) => {
215
215
  const e = i.c(7);
216
216
  let r, l;
217
217
  e[0] !== t ? (r = [s, "department", t, "manager"], l = (c) => {
@@ -233,7 +233,7 @@ const s = "ps", a = 1e3 * 60 * 60 * 24, ue = (t, n) => {
233
233
  gcTime: a,
234
234
  refetchOnWindowFocus: !1
235
235
  }, e[3] = n, e[4] = r, e[5] = l, e[6] = u) : u = e[6], m(u);
236
- }, he = (t, n) => {
236
+ }, ge = (t, n) => {
237
237
  const e = i.c(7);
238
238
  let r, l;
239
239
  e[0] !== t ? (r = [s, "department", t, "employees"], l = (c) => {
@@ -244,7 +244,7 @@ const s = "ps", a = 1e3 * 60 * 60 * 24, ue = (t, n) => {
244
244
  url: `/${s}/v1/department/${t}/employees`,
245
245
  method: "GET",
246
246
  signal: o
247
- }).then(Q);
247
+ }).then(U);
248
248
  }, e[0] = t, e[1] = r, e[2] = l) : (r = e[1], l = e[2]);
249
249
  let u;
250
250
  return e[3] !== n || e[4] !== r || e[5] !== l ? (u = {
@@ -255,7 +255,7 @@ const s = "ps", a = 1e3 * 60 * 60 * 24, ue = (t, n) => {
255
255
  gcTime: a,
256
256
  refetchOnWindowFocus: !1
257
257
  }, e[3] = n, e[4] = r, e[5] = l, e[6] = u) : u = e[6], m(u);
258
- }, de = (t, n) => {
258
+ }, Te = (t, n) => {
259
259
  const e = i.c(7);
260
260
  let r, l;
261
261
  e[0] !== t ? (r = [s, "company", t, "generalManager"], l = (c) => {
@@ -266,7 +266,7 @@ const s = "ps", a = 1e3 * 60 * 60 * 24, ue = (t, n) => {
266
266
  url: `/${s}/v1/company/${t}/generalManager`,
267
267
  method: "GET",
268
268
  signal: o
269
- }).then(U);
269
+ }).then(N);
270
270
  }, e[0] = t, e[1] = r, e[2] = l) : (r = e[1], l = e[2]);
271
271
  let u;
272
272
  return e[3] !== n || e[4] !== r || e[5] !== l ? (u = {
@@ -278,13 +278,13 @@ const s = "ps", a = 1e3 * 60 * 60 * 24, ue = (t, n) => {
278
278
  refetchOnWindowFocus: !1
279
279
  }, e[3] = n, e[4] = r, e[5] = l, e[6] = u) : u = e[6], m(u);
280
280
  };
281
- function _(t) {
282
- return t.data;
283
- }
284
281
  function E(t) {
285
282
  return t.data;
286
283
  }
287
284
  function G(t) {
285
+ return t.data;
286
+ }
287
+ function S(t) {
288
288
  const {
289
289
  signal: n
290
290
  } = t;
@@ -292,12 +292,12 @@ function G(t) {
292
292
  url: `/${s}/v1/employee/all`,
293
293
  method: "GET",
294
294
  signal: n
295
- }).then(E);
295
+ }).then(G);
296
296
  }
297
- function S(t) {
297
+ function P(t) {
298
298
  return t.data;
299
299
  }
300
- function P(t) {
300
+ function K(t) {
301
301
  const {
302
302
  signal: n
303
303
  } = t;
@@ -305,15 +305,15 @@ function P(t) {
305
305
  url: `/${s}/v1/employee/active`,
306
306
  method: "GET",
307
307
  signal: n
308
- }).then(S);
309
- }
310
- function K(t) {
311
- return t.data;
308
+ }).then(P);
312
309
  }
313
310
  function O(t) {
314
311
  return t.data;
315
312
  }
316
313
  function w(t) {
314
+ return t.data;
315
+ }
316
+ function R(t) {
317
317
  const {
318
318
  signal: n
319
319
  } = t;
@@ -321,10 +321,7 @@ function w(t) {
321
321
  url: `/${s}/v1/employee/previousIds`,
322
322
  method: "GET",
323
323
  signal: n
324
- }).then(O);
325
- }
326
- function R(t) {
327
- return t.data;
324
+ }).then(w);
328
325
  }
329
326
  function A(t) {
330
327
  return t.data;
@@ -339,6 +336,9 @@ function M(t) {
339
336
  return t.data;
340
337
  }
341
338
  function x(t) {
339
+ return t.data;
340
+ }
341
+ function C(t) {
342
342
  const {
343
343
  signal: n
344
344
  } = t;
@@ -346,28 +346,28 @@ function x(t) {
346
346
  url: `/${s}/v1/department/all`,
347
347
  method: "GET",
348
348
  signal: n
349
- }).then(M);
349
+ }).then(x);
350
350
  }
351
- function C(t) {
351
+ function Q(t) {
352
352
  return t.data;
353
353
  }
354
354
  function D(t) {
355
355
  return t.data;
356
356
  }
357
- function Q(t) {
357
+ function U(t) {
358
358
  return t.data;
359
359
  }
360
- function U(t) {
360
+ function N(t) {
361
361
  return t.data;
362
362
  }
363
- const y = "approval", h = g(T.VITE_APP_TITLE);
363
+ const y = "approval", h = T(v.VITE_APP_TITLE);
364
364
  $.object({
365
365
  appName: $.string().min(1).max(255).default(h).optional(),
366
- status: F.optional(),
366
+ status: _.optional(),
367
367
  approverEmployeeId: $.string().min(1).max(20).optional(),
368
- stepResult: v.optional()
368
+ stepResult: F.optional()
369
369
  });
370
- const ge = (t, n) => {
370
+ const ve = (t, n) => {
371
371
  const e = i.c(10);
372
372
  let r;
373
373
  e[0] !== t ? (r = new URLSearchParams(), r.append("applicationName", t?.appName ?? h), t?.status && r.append("status", t.status.toString()), t?.approverEmployeeId && r.append("approverEmployeeId", t.approverEmployeeId), t?.stepResult && r.append("stepResult", t.stepResult.toString()), e[0] = t, e[1] = r) : r = e[1];
@@ -382,7 +382,7 @@ const ge = (t, n) => {
382
382
  url: `/${y}/Requests/Requests?${r.toString()}`,
383
383
  method: "GET",
384
384
  signal: d
385
- }).then(N);
385
+ }).then(Y);
386
386
  }, e[4] = r, e[5] = u) : u = e[5];
387
387
  let c;
388
388
  return e[6] !== n || e[7] !== l || e[8] !== u ? (c = {
@@ -390,7 +390,7 @@ const ge = (t, n) => {
390
390
  queryKey: l,
391
391
  queryFn: u
392
392
  }, e[6] = n, e[7] = l, e[8] = u, e[9] = c) : c = e[9], m(c);
393
- }, Te = (t, n) => {
393
+ }, Fe = (t, n) => {
394
394
  const e = i.c(7);
395
395
  let r, l;
396
396
  e[0] !== t ? (r = [y, t], l = (c) => {
@@ -401,7 +401,7 @@ const ge = (t, n) => {
401
401
  url: `/${y}/Requests/${t}`,
402
402
  method: "GET",
403
403
  signal: o
404
- }).then(Y);
404
+ }).then(B);
405
405
  }, e[0] = t, e[1] = r, e[2] = l) : (r = e[1], l = e[2]);
406
406
  let u;
407
407
  return e[3] !== n || e[4] !== r || e[5] !== l ? (u = {
@@ -409,7 +409,7 @@ const ge = (t, n) => {
409
409
  queryKey: r,
410
410
  queryFn: l
411
411
  }, e[3] = n, e[4] = r, e[5] = l, e[6] = u) : u = e[6], m(u);
412
- }, ve = (t) => {
412
+ }, _e = (t) => {
413
413
  const n = i.c(5), e = p();
414
414
  let r;
415
415
  n[0] !== e ? (r = () => e.invalidateQueries({
@@ -419,10 +419,10 @@ const ge = (t, n) => {
419
419
  let l;
420
420
  return n[2] !== t || n[3] !== r ? (l = {
421
421
  ...t,
422
- mutationFn: L,
422
+ mutationFn: j,
423
423
  onSettled: r
424
424
  }, n[2] = t, n[3] = r, n[4] = l) : l = n[4], q(l);
425
- }, Fe = (t) => {
425
+ }, Ee = (t) => {
426
426
  const n = i.c(5), e = p();
427
427
  let r;
428
428
  n[0] !== e ? (r = () => e.invalidateQueries({
@@ -432,10 +432,10 @@ const ge = (t, n) => {
432
432
  let l;
433
433
  return n[2] !== t || n[3] !== r ? (l = {
434
434
  ...t,
435
- mutationFn: z,
435
+ mutationFn: V,
436
436
  onSettled: r
437
437
  }, n[2] = t, n[3] = r, n[4] = l) : l = n[4], q(l);
438
- }, _e = (t) => {
438
+ }, Ge = (t) => {
439
439
  const n = i.c(5), e = p();
440
440
  let r;
441
441
  n[0] !== e ? (r = () => e.invalidateQueries({
@@ -445,10 +445,10 @@ const ge = (t, n) => {
445
445
  let l;
446
446
  return n[2] !== t || n[3] !== r ? (l = {
447
447
  ...t,
448
- mutationFn: k,
448
+ mutationFn: H,
449
449
  onSettled: r
450
450
  }, n[2] = t, n[3] = r, n[4] = l) : l = n[4], q(l);
451
- }, Ee = (t) => {
451
+ }, Se = (t) => {
452
452
  const n = i.c(5), e = p();
453
453
  let r;
454
454
  n[0] !== e ? (r = () => e.invalidateQueries({
@@ -458,10 +458,10 @@ const ge = (t, n) => {
458
458
  let l;
459
459
  return n[2] !== t || n[3] !== r ? (l = {
460
460
  ...t,
461
- mutationFn: J,
461
+ mutationFn: X,
462
462
  onSettled: r
463
463
  }, n[2] = t, n[3] = r, n[4] = l) : l = n[4], q(l);
464
- }, Ge = (t) => {
464
+ }, Pe = (t) => {
465
465
  const n = i.c(5), e = p();
466
466
  let r;
467
467
  n[0] !== e ? (r = () => e.invalidateQueries({
@@ -471,13 +471,10 @@ const ge = (t, n) => {
471
471
  let l;
472
472
  return n[2] !== t || n[3] !== r ? (l = {
473
473
  ...t,
474
- mutationFn: Z,
474
+ mutationFn: I,
475
475
  onSettled: r
476
476
  }, n[2] = t, n[3] = r, n[4] = l) : l = n[4], q(l);
477
477
  };
478
- function N(t) {
479
- return t.data;
480
- }
481
478
  function Y(t) {
482
479
  return t.data;
483
480
  }
@@ -485,82 +482,86 @@ function B(t) {
485
482
  return t.data;
486
483
  }
487
484
  function L(t) {
485
+ return t.data;
486
+ }
487
+ function j(t) {
488
488
  return f.request({
489
489
  url: `/${y}/Requests`,
490
490
  method: "POST",
491
491
  data: t
492
- }).then(B);
492
+ }).then(L);
493
493
  }
494
- function j(t) {
494
+ function z(t) {
495
495
  return t.data;
496
496
  }
497
- function z(t) {
497
+ function V(t) {
498
498
  return f.request({
499
499
  url: `/${y}/Requests/${t.id}/single-approval`,
500
500
  method: "POST",
501
501
  data: t
502
- }).then(j);
502
+ }).then(z);
503
503
  }
504
- function V(t) {
504
+ function k(t) {
505
505
  return t.data;
506
506
  }
507
- function k(t) {
507
+ function H(t) {
508
508
  return f.request({
509
509
  url: `/${y}/Requests/${t.id}/resubmit`,
510
510
  method: "POST",
511
511
  data: t
512
- }).then(V);
512
+ }).then(k);
513
513
  }
514
- function H(t) {
514
+ function J(t) {
515
515
  return t.data;
516
516
  }
517
- function J(t) {
517
+ function X(t) {
518
518
  return f.request({
519
519
  url: `/${y}/Requests/${t.id}/withdraw`,
520
520
  method: "POST",
521
521
  data: t
522
- }).then(H);
522
+ }).then(J);
523
523
  }
524
- function X(t) {
524
+ function Z(t) {
525
525
  return t.data;
526
526
  }
527
- function Z(t) {
527
+ function I(t) {
528
528
  return f.request({
529
529
  url: `/${y}/Requests/${t.id}/cancel`,
530
530
  method: "POST",
531
531
  data: t
532
- }).then(X);
532
+ }).then(Z);
533
533
  }
534
534
  export {
535
- Fe as useApproveApproval,
536
- Ge as useCancelApproval,
537
- ve as useCreateApproval,
538
- Ke as useDeleteFile,
539
- Oe as useDeleteFiles,
540
- we as useDownloadFile,
541
- Te as useGetApproval,
542
- ge as useGetApprovals,
543
- Re as useGetFile,
544
- Ae as useGetFileMetas,
545
- We as useGetFileThumbnail,
546
- ae as useGetPeopleSoftActiveEmployees,
547
- de as useGetPeopleSoftCompanyGeneralManager,
548
- qe as useGetPeopleSoftDepartmentById,
549
- he as useGetPeopleSoftDepartmentEmployees,
550
- $e as useGetPeopleSoftDepartmentManager,
551
- pe as useGetPeopleSoftDepartments,
552
- ce as useGetPeopleSoftEmployeeById,
553
- ye as useGetPeopleSoftEmployeeGeneralManager,
554
- me as useGetPeopleSoftEmployeeManager,
555
- fe as useGetPeopleSoftEmployeeSubordinates,
556
- ie as useGetPeopleSoftEmployeeSupervisor,
557
- se as useGetPeopleSoftEmployees,
558
- ue as useGetPeopleSoftEmployeesSearch,
559
- oe as useGetPeopleSoftPreviousEmployeeIds,
560
- be as useOpenFile,
561
- _e as useResubmitApproval,
562
- Me as useUpdateFileMeta,
563
- xe as useUploadFile,
564
- Ee as useWithdrawApproval
535
+ se as queryClient,
536
+ Ee as useApproveApproval,
537
+ Pe as useCancelApproval,
538
+ _e as useCreateApproval,
539
+ we as useDeleteFile,
540
+ Re as useDeleteFiles,
541
+ Ae as useDownloadFile,
542
+ Fe as useGetApproval,
543
+ ve as useGetApprovals,
544
+ We as useGetFile,
545
+ be as useGetFileMetas,
546
+ Me as useGetFileThumbnail,
547
+ oe as useGetPeopleSoftActiveEmployees,
548
+ Te as useGetPeopleSoftCompanyGeneralManager,
549
+ he as useGetPeopleSoftDepartmentById,
550
+ ge as useGetPeopleSoftDepartmentEmployees,
551
+ de as useGetPeopleSoftDepartmentManager,
552
+ $e as useGetPeopleSoftDepartments,
553
+ ie as useGetPeopleSoftEmployeeById,
554
+ qe as useGetPeopleSoftEmployeeGeneralManager,
555
+ pe as useGetPeopleSoftEmployeeManager,
556
+ ye as useGetPeopleSoftEmployeeSubordinates,
557
+ me as useGetPeopleSoftEmployeeSupervisor,
558
+ ce as useGetPeopleSoftEmployees,
559
+ ae as useGetPeopleSoftEmployeesSearch,
560
+ fe as useGetPeopleSoftPreviousEmployeeIds,
561
+ xe as useOpenFile,
562
+ Ge as useResubmitApproval,
563
+ Ce as useUpdateFileMeta,
564
+ Qe as useUploadFile,
565
+ Se as useWithdrawApproval
565
566
  };
566
567
  //# sourceMappingURL=queries.js.map