phx-react 1.3.1703 → 1.3.1704
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/cjs/components/MainWrapV4/quick-action/library/query.d.ts +1 -1
- package/dist/cjs/components/MainWrapV4/quick-action/library/query.js +6 -0
- package/dist/cjs/components/MainWrapV4/quick-action/library/query.js.map +1 -1
- package/dist/esm/components/MainWrapV4/quick-action/library/query.d.ts +1 -1
- package/dist/esm/components/MainWrapV4/quick-action/library/query.js +6 -0
- package/dist/esm/components/MainWrapV4/quick-action/library/query.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const getListBookStateQuery = "\n query getListBookStateQuery($schoolId: Int!) {\n library_state(\n where: {deleted_at: {_is_null: true}, school_id: {_eq: $schoolId}}\n ) {\n id\n code\n }\n }\n";
|
|
2
2
|
export declare const getQrPrefixCodeQuery = "\n query getQrPrefixCodeQuery($id: Int!) {\n library_warehouse(where: {id: {_eq: $id}}) {\n qr_code_prefix\n tem_name\n }\n }\n";
|
|
3
|
-
export declare const getBookScanReturnQueryV2 = "\n query getBookScanReturnQueryV2(\n $code: String!\n $school_id: Int!\n $warehouseId: Int!\n $currentSchoolYearId: Int!\n ) {\n library_dang_ki_ca_biet(\n where: {\n deleted_at: {_is_null: true}\n code: {_eq: $code}\n school_id: {_eq: $school_id}\n warehouse_id: {_eq: $warehouseId}\n }\n ) {\n id\n pre_state\n code\n library_book_copy {\n library_book_images(where: {deleted_at: {_is_null: true}}) {\n url\n }\n library_book {\n title\n }\n }\n state_id\n library_borrow_books(where: {return_date:{_is_null: true} library_borrow_ticket:{library_ticket_state:{code:{_eq: \"BORROWED\"}}} deleted_at: {_is_null: true}}) {\n id\n library_borrow_ticket {\n id\n library_borrow_books(where: {deleted_at: {_is_null: true}}) {\n return_date\n }\n actual_borrow_date\n expect_return_date\n user {\n full_name\n user_roles(where: {deleted_at: {_is_null: true}}) {\n role {\n role_code\n name\n }\n }\n profile_staff {\n user_code\n }\n profile_student {\n user_code\n }\n profile_teacher {\n user_code\n }\n classroom_students(\n where: {\n deleted_at: {_is_null: true}\n classroom: {school_year_id: {_eq: $currentSchoolYearId}}\n }\n ) {\n classroom {\n name\n }\n }\n }\n }\n }\n }\n }\n";
|
|
3
|
+
export declare const getBookScanReturnQueryV2 = "\n query getBookScanReturnQueryV2(\n $code: String!\n $school_id: Int!\n $warehouseId: Int!\n $currentSchoolYearId: Int!\n ) {\n library_dang_ki_ca_biet(\n where: {\n deleted_at: {_is_null: true}\n code: {_eq: $code}\n school_id: {_eq: $school_id}\n warehouse_id: {_eq: $warehouseId}\n library_book_copy: {\n deleted_at: {_is_null: true}, \n library_book: {\n deleted_at: {_is_null: true}\n }\n }\n }\n ) {\n id\n pre_state\n code\n library_book_copy {\n library_book_images(where: {deleted_at: {_is_null: true}}) {\n url\n }\n library_book {\n title\n }\n }\n state_id\n library_borrow_books(where: {return_date:{_is_null: true} library_borrow_ticket:{library_ticket_state:{code:{_eq: \"BORROWED\"}}} deleted_at: {_is_null: true}}) {\n id\n library_borrow_ticket {\n id\n library_borrow_books(where: {deleted_at: {_is_null: true}}) {\n return_date\n }\n actual_borrow_date\n expect_return_date\n user {\n full_name\n user_roles(where: {deleted_at: {_is_null: true}}) {\n role {\n role_code\n name\n }\n }\n profile_staff {\n user_code\n }\n profile_student {\n user_code\n }\n profile_teacher {\n user_code\n }\n classroom_students(\n where: {\n deleted_at: {_is_null: true}\n classroom: {school_year_id: {_eq: $currentSchoolYearId}}\n }\n ) {\n classroom {\n name\n }\n }\n }\n }\n }\n }\n }\n";
|
|
4
4
|
export declare const queryGetPrefixCode = "\n query queryGetPrefixCode($id: Int!) {\n library_warehouse(where: {id: {_eq: $id}}) {\n qr_code_prefix\n }\n }\n";
|
|
5
5
|
export declare const getWarehouseIdByEducationalLevelCodeQuery = "\n query getWarehouseIdByEducationalLevelCodeQuery(\n $educationalLevelCode: String!\n $schoolId: Int!\n ) {\n library_warehouse_educational_level(\n where: {educational_level: {school_id: {_eq: $schoolId} code: {_eq: $educationalLevelCode}}}\n ) {\n warehouse_id\n }\n }\n";
|
|
6
6
|
export declare const searchBookBorrowQuery = "\n query searchBookBorrowQuery(\n $school_id: Int!\n $warehouseId: Int!\n $code: String!\n ) {\n library_dang_ki_ca_biet(\n where: {\n code: {_eq: $code}\n warehouse_id: {_eq: $warehouseId}\n school_id: {_eq: $school_id}\n deleted_at: {_is_null: true}\n library_book_copy: {\n deleted_at: {_is_null: true}\n library_book: {deleted_at: {_is_null: true}}\n }\n }\n ) {\n id\n code\n state_id\n library_state {\n name\n code\n }\n library_book_copy {\n id\n library_book_images(where: {deleted_at: {_is_null: true}}) {\n url\n }\n library_book {\n title\n }\n }\n }\n }\n";
|
|
@@ -34,6 +34,12 @@ exports.getBookScanReturnQueryV2 = `
|
|
|
34
34
|
code: {_eq: $code}
|
|
35
35
|
school_id: {_eq: $school_id}
|
|
36
36
|
warehouse_id: {_eq: $warehouseId}
|
|
37
|
+
library_book_copy: {
|
|
38
|
+
deleted_at: {_is_null: true},
|
|
39
|
+
library_book: {
|
|
40
|
+
deleted_at: {_is_null: true}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
37
43
|
}
|
|
38
44
|
) {
|
|
39
45
|
id
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../../../../src/components/MainWrapV4/quick-action/library/query.ts"],"names":[],"mappings":";;;AAAA,6CAA8C;AAC9C,2CAOoB;AAEP,QAAA,qBAAqB,GAAG;;;;;;;;;CASpC,CAAA;AACY,QAAA,oBAAoB,GAAG;;;;;;;CAOnC,CAAA;AACY,QAAA,wBAAwB,GAAG
|
|
1
|
+
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../../../../src/components/MainWrapV4/quick-action/library/query.ts"],"names":[],"mappings":";;;AAAA,6CAA8C;AAC9C,2CAOoB;AAEP,QAAA,qBAAqB,GAAG;;;;;;;;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AQ;;;mCAGP,QAAQ;;;;;;;;;;;;;;;;;;;;;;;oBAuBvB,gCAAoB;oBACpB,qCAAyB;oBACzB,qCAAyB;;;;;;;;;;;;yCAYJ,mBAAmB;;;;;;;;;;;;KAYvD;KACF,CAAA;AACH,CAAC,CAAA;AAnFY,QAAA,gBAAgB,oBAmF5B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const getListBookStateQuery = "\n query getListBookStateQuery($schoolId: Int!) {\n library_state(\n where: {deleted_at: {_is_null: true}, school_id: {_eq: $schoolId}}\n ) {\n id\n code\n }\n }\n";
|
|
2
2
|
export declare const getQrPrefixCodeQuery = "\n query getQrPrefixCodeQuery($id: Int!) {\n library_warehouse(where: {id: {_eq: $id}}) {\n qr_code_prefix\n tem_name\n }\n }\n";
|
|
3
|
-
export declare const getBookScanReturnQueryV2 = "\n query getBookScanReturnQueryV2(\n $code: String!\n $school_id: Int!\n $warehouseId: Int!\n $currentSchoolYearId: Int!\n ) {\n library_dang_ki_ca_biet(\n where: {\n deleted_at: {_is_null: true}\n code: {_eq: $code}\n school_id: {_eq: $school_id}\n warehouse_id: {_eq: $warehouseId}\n }\n ) {\n id\n pre_state\n code\n library_book_copy {\n library_book_images(where: {deleted_at: {_is_null: true}}) {\n url\n }\n library_book {\n title\n }\n }\n state_id\n library_borrow_books(where: {return_date:{_is_null: true} library_borrow_ticket:{library_ticket_state:{code:{_eq: \"BORROWED\"}}} deleted_at: {_is_null: true}}) {\n id\n library_borrow_ticket {\n id\n library_borrow_books(where: {deleted_at: {_is_null: true}}) {\n return_date\n }\n actual_borrow_date\n expect_return_date\n user {\n full_name\n user_roles(where: {deleted_at: {_is_null: true}}) {\n role {\n role_code\n name\n }\n }\n profile_staff {\n user_code\n }\n profile_student {\n user_code\n }\n profile_teacher {\n user_code\n }\n classroom_students(\n where: {\n deleted_at: {_is_null: true}\n classroom: {school_year_id: {_eq: $currentSchoolYearId}}\n }\n ) {\n classroom {\n name\n }\n }\n }\n }\n }\n }\n }\n";
|
|
3
|
+
export declare const getBookScanReturnQueryV2 = "\n query getBookScanReturnQueryV2(\n $code: String!\n $school_id: Int!\n $warehouseId: Int!\n $currentSchoolYearId: Int!\n ) {\n library_dang_ki_ca_biet(\n where: {\n deleted_at: {_is_null: true}\n code: {_eq: $code}\n school_id: {_eq: $school_id}\n warehouse_id: {_eq: $warehouseId}\n library_book_copy: {\n deleted_at: {_is_null: true}, \n library_book: {\n deleted_at: {_is_null: true}\n }\n }\n }\n ) {\n id\n pre_state\n code\n library_book_copy {\n library_book_images(where: {deleted_at: {_is_null: true}}) {\n url\n }\n library_book {\n title\n }\n }\n state_id\n library_borrow_books(where: {return_date:{_is_null: true} library_borrow_ticket:{library_ticket_state:{code:{_eq: \"BORROWED\"}}} deleted_at: {_is_null: true}}) {\n id\n library_borrow_ticket {\n id\n library_borrow_books(where: {deleted_at: {_is_null: true}}) {\n return_date\n }\n actual_borrow_date\n expect_return_date\n user {\n full_name\n user_roles(where: {deleted_at: {_is_null: true}}) {\n role {\n role_code\n name\n }\n }\n profile_staff {\n user_code\n }\n profile_student {\n user_code\n }\n profile_teacher {\n user_code\n }\n classroom_students(\n where: {\n deleted_at: {_is_null: true}\n classroom: {school_year_id: {_eq: $currentSchoolYearId}}\n }\n ) {\n classroom {\n name\n }\n }\n }\n }\n }\n }\n }\n";
|
|
4
4
|
export declare const queryGetPrefixCode = "\n query queryGetPrefixCode($id: Int!) {\n library_warehouse(where: {id: {_eq: $id}}) {\n qr_code_prefix\n }\n }\n";
|
|
5
5
|
export declare const getWarehouseIdByEducationalLevelCodeQuery = "\n query getWarehouseIdByEducationalLevelCodeQuery(\n $educationalLevelCode: String!\n $schoolId: Int!\n ) {\n library_warehouse_educational_level(\n where: {educational_level: {school_id: {_eq: $schoolId} code: {_eq: $educationalLevelCode}}}\n ) {\n warehouse_id\n }\n }\n";
|
|
6
6
|
export declare const searchBookBorrowQuery = "\n query searchBookBorrowQuery(\n $school_id: Int!\n $warehouseId: Int!\n $code: String!\n ) {\n library_dang_ki_ca_biet(\n where: {\n code: {_eq: $code}\n warehouse_id: {_eq: $warehouseId}\n school_id: {_eq: $school_id}\n deleted_at: {_is_null: true}\n library_book_copy: {\n deleted_at: {_is_null: true}\n library_book: {deleted_at: {_is_null: true}}\n }\n }\n ) {\n id\n code\n state_id\n library_state {\n name\n code\n }\n library_book_copy {\n id\n library_book_images(where: {deleted_at: {_is_null: true}}) {\n url\n }\n library_book {\n title\n }\n }\n }\n }\n";
|
|
@@ -31,6 +31,12 @@ export const getBookScanReturnQueryV2 = `
|
|
|
31
31
|
code: {_eq: $code}
|
|
32
32
|
school_id: {_eq: $school_id}
|
|
33
33
|
warehouse_id: {_eq: $warehouseId}
|
|
34
|
+
library_book_copy: {
|
|
35
|
+
deleted_at: {_is_null: true},
|
|
36
|
+
library_book: {
|
|
37
|
+
deleted_at: {_is_null: true}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
34
40
|
}
|
|
35
41
|
) {
|
|
36
42
|
id
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../../../../src/components/MainWrapV4/quick-action/library/query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAC9C,OAAO,EACL,yBAAyB,EACzB,yBAAyB,EACzB,oBAAoB,EACpB,uBAAuB,EACvB,uBAAuB,EACvB,WAAW,GACZ,MAAM,aAAa,CAAA;AAEpB,MAAM,CAAC,MAAM,qBAAqB,GAAG;;;;;;;;;CASpC,CAAA;AACD,MAAM,CAAC,MAAM,oBAAoB,GAAG;;;;;;;CAOnC,CAAA;AACD,MAAM,CAAC,MAAM,wBAAwB,GAAG
|
|
1
|
+
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../../../../src/components/MainWrapV4/quick-action/library/query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAC9C,OAAO,EACL,yBA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