cozy-client 57.4.0 → 57.5.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/CozyClient.js
CHANGED
|
@@ -3112,7 +3112,7 @@ var CozyClient = /*#__PURE__*/function () {
|
|
|
3112
3112
|
CozyClient.hooks = CozyClient.hooks || {};
|
|
3113
3113
|
CozyClient.fetchPolicies = _policies.default; //COZY_CLIENT_VERSION_PACKAGE in replaced by babel. See babel config
|
|
3114
3114
|
|
|
3115
|
-
CozyClient.version = "57.
|
|
3115
|
+
CozyClient.version = "57.5.0";
|
|
3116
3116
|
|
|
3117
3117
|
_microee.default.mixin(CozyClient);
|
|
3118
3118
|
|
package/dist/hooks/useQuery.js
CHANGED
|
@@ -29,6 +29,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
29
29
|
|
|
30
30
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
31
31
|
|
|
32
|
+
// @ts-ignore We use our own store in with Redux
|
|
32
33
|
var useSelector = (0, _reactRedux.createSelectorHook)(_context.clientContext);
|
|
33
34
|
|
|
34
35
|
var resolveToValue = function resolveToValue(fnOrValue) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-client",
|
|
3
|
-
"version": "57.
|
|
3
|
+
"version": "57.5.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.node.js",
|
|
6
6
|
"browser": "dist/index.js",
|
|
@@ -69,10 +69,10 @@
|
|
|
69
69
|
"cozy-logger": ">1.7.0",
|
|
70
70
|
"react": "^16.7.0",
|
|
71
71
|
"react-native": "^0.65.0",
|
|
72
|
-
"react-native-google-play-integrity": "
|
|
72
|
+
"react-native-google-play-integrity": "^1.1.0",
|
|
73
73
|
"react-native-inappbrowser-reborn": "^3.5.1",
|
|
74
|
-
"react-native-ios11-devicecheck": "
|
|
74
|
+
"react-native-ios11-devicecheck": "^0.0.3"
|
|
75
75
|
},
|
|
76
76
|
"sideEffects": false,
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "1244b5d668b419f7c10e7474160211b3ec6bbe41"
|
|
78
78
|
}
|
package/types/models/paper.d.ts
CHANGED
|
@@ -59,4 +59,4 @@ export function makeExpirationDescription(expirationDate: string, { lang }: {
|
|
|
59
59
|
}): string;
|
|
60
60
|
export function isForeignPaper(file: IOCozyFile): boolean;
|
|
61
61
|
export type IOCozyFile = import("../types").CozyClientDocument & import("../types").FileDocument;
|
|
62
|
-
export type MetadataQualificationType = "
|
|
62
|
+
export type MetadataQualificationType = "date" | "contact" | "information" | "other" | "bills";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare var _default: {};
|
|
2
2
|
export default _default;
|
|
3
|
-
export type MeasureColor = "
|
|
3
|
+
export type MeasureColor = "primary" | "primary-light" | "primary-dark" | "secondary" | "secondary-light" | "secondary-dark" | "tertiary" | "tertiary-light" | "tertiary-dark" | "error";
|
|
4
4
|
export type MeasureOptions = {
|
|
5
5
|
/**
|
|
6
6
|
* - Mark name used as the start point for performance measurement
|
package/types/registry.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export type RegistryApp = {
|
|
|
7
7
|
installed: boolean;
|
|
8
8
|
type: string;
|
|
9
9
|
};
|
|
10
|
-
export type RegistryAppChannel = "
|
|
10
|
+
export type RegistryAppChannel = "dev" | "beta" | "stable";
|
|
11
11
|
/**
|
|
12
12
|
* @typedef {object} RegistryApp
|
|
13
13
|
* @property {string} slug
|
package/types/types.d.ts
CHANGED
|
@@ -479,7 +479,7 @@ export type ManifestFields = {
|
|
|
479
479
|
};
|
|
480
480
|
export type OldCozyClient = any;
|
|
481
481
|
export type NodeEnvironment = any;
|
|
482
|
-
export type QueryFetchStatus = "
|
|
482
|
+
export type QueryFetchStatus = "loading" | "loaded" | "pending" | "failed";
|
|
483
483
|
export type QueriesStateSlice = {
|
|
484
484
|
[x: string]: QueryState;
|
|
485
485
|
};
|
|
@@ -1414,7 +1414,7 @@ export type CouchDBBulkResult = {
|
|
|
1414
1414
|
};
|
|
1415
1415
|
export type ViewKey = string | string[];
|
|
1416
1416
|
export type DocId = string;
|
|
1417
|
-
export type CouchDBViewCursor = [
|
|
1417
|
+
export type CouchDBViewCursor = [ViewKey, string];
|
|
1418
1418
|
export type Theme = {
|
|
1419
1419
|
id: string;
|
|
1420
1420
|
label: string;
|
|
@@ -1423,7 +1423,7 @@ export type Theme = {
|
|
|
1423
1423
|
defaultItems?: Array<string>;
|
|
1424
1424
|
};
|
|
1425
1425
|
export type ThemesList = Theme[];
|
|
1426
|
-
export type ThemesLabels = "
|
|
1426
|
+
export type ThemesLabels = "identity" | "family" | "transport" | "health" | "invoice" | "home" | "work_study" | "finance" | "others";
|
|
1427
1427
|
export type QualificationAttributes = {
|
|
1428
1428
|
label: string;
|
|
1429
1429
|
purpose?: string;
|
|
@@ -1433,7 +1433,7 @@ export type QualificationAttributes = {
|
|
|
1433
1433
|
};
|
|
1434
1434
|
export type IdentityLabel = "identity_photo" | "national_id_card" | "passport" | "residence_permit" | "family_record_book" | "birth_certificate" | "driver_license" | "other_identity_document" | "electoral_card" | "citizen_registration_certificate" | "personal_sporting_licence" | "note_identity_document";
|
|
1435
1435
|
export type FamilyLabel = "family_record_book" | "birth_certificate" | "wedding" | "pacs" | "divorce" | "large_family_card" | "caf" | "other_family_document" | "single_parent_benefit" | "payment_proof_family_allowance" | "person_insurance" | "note_family_document";
|
|
1436
|
-
export type WorkStudyLabels = "
|
|
1436
|
+
export type WorkStudyLabels = "diploma" | "work_contract" | "pay_sheet" | "employment_center_certificate" | "unemployment_benefit" | "pension" | "gradebook" | "student_card" | "resume" | "motivation_letter" | "other_work_document" | "work_disability_recognition" | "school_attendance_certificate" | "school_insurance_certificate" | "expense_claim" | "note_work_document";
|
|
1437
1437
|
export type HealthLabels = "health_book" | "health_certificate" | "pregnancy_medical_certificate" | "work_disability_recognition" | "national_health_insurance_card" | "national_health_insurance_right_certificate" | "health_insurance_card" | "prescription" | "health_invoice" | "other_health_document" | "note_health_document";
|
|
1438
1438
|
export type HomeLabels = "house_sale_agreeement" | "building_permit" | "technical_diagnostic_record" | "lease" | "rent_receipt" | "house_insurance" | "work_quote" | "work_invoice" | "other_house_document" | "phone_invoice" | "isp_invoice" | "telecom_invoice" | "energy_invoice" | "water_invoice" | "other_invoice" | "unfit_for_habitation_declaration" | "accommodation_proof" | "real_estate_insurance" | "condition_report" | "note_house_document";
|
|
1439
1439
|
export type TransportLabels = "driver_license" | "transport_card" | "vehicle_registration" | "car_insurance" | "mechanic_invoice" | "transport_invoice" | "other_transport_document" | "note_transport_document";
|
|
@@ -1441,8 +1441,8 @@ export type FinanceLabels = "pay_sheet" | "single_parent_benefit" | "other_reven
|
|
|
1441
1441
|
export type InvoiceLabels = "health_invoice" | "transport_invoice" | "work_invoice" | "phone_invoice" | "isp_invoice" | "telecom_invoice" | "energy_invoice" | "water_invoice" | "energy_contract" | "appliance_invoice" | "web_service_invoice" | "restaurant_invoice" | "grocery_invoice" | "other_invoice" | "expense_claim" | "note_invoice";
|
|
1442
1442
|
export type ActivityLabels = "fidelity_card" | "personal_sporting_licence" | "other_activity_document" | "note_activity_document";
|
|
1443
1443
|
export type OthersLabels = "other_administrative_document" | "note_other";
|
|
1444
|
-
export type ItemsLabels = "
|
|
1445
|
-
export type iconPeopleLabels = "
|
|
1444
|
+
export type ItemsLabels = "identity_photo" | "national_id_card" | "passport" | "residence_permit" | "family_record_book" | "birth_certificate" | "driver_license" | "other_identity_document" | "wedding" | "pacs" | "divorce" | "large_family_card" | "caf" | "other_family_document" | "diploma" | "work_contract" | "pay_sheet" | "fidelity_card" | "single_parent_benefit" | "transport_card" | "electoral_card" | "employment_center_certificate" | "unemployment_benefit" | "pension" | "other_revenue" | "gradebook" | "student_card" | "resume" | "motivation_letter" | "other_work_document" | "health_book" | "health_certificate" | "pregnancy_medical_certificate" | "work_disability_recognition" | "national_health_insurance_card" | "national_health_insurance_right_certificate" | "health_insurance_card" | "prescription" | "health_invoice" | "other_health_document" | "vehicle_registration" | "car_insurance" | "mechanic_invoice" | "transport_invoice" | "other_transport_document" | "house_sale_agreeement" | "real_estate_tax" | "building_permit" | "technical_diagnostic_record" | "lease" | "rent_receipt" | "house_insurance" | "work_quote" | "work_invoice" | "other_house_document" | "phone_invoice" | "isp_invoice" | "telecom_invoice" | "energy_invoice" | "water_invoice" | "energy_contract" | "appliance_invoice" | "web_service_invoice" | "restaurant_invoice" | "grocery_invoice" | "other_invoice" | "tax_certificate" | "tax_return" | "tax_notice" | "tax_timetable" | "other_tax_document" | "bank_details" | "bank_statement" | "loan_agreement" | "other_bank_document" | "receipt" | "payment_proof_family_allowance" | "school_attendance_certificate" | "school_insurance_certificate" | "unfit_for_habitation_declaration" | "accommodation_proof" | "citizen_registration_certificate" | "personal_sporting_licence" | "other_activity_document" | "real_estate_insurance" | "person_insurance" | "other_administrative_document" | "expense_claim" | "fine" | "condition_report" | "note_identity_document" | "note_family_document" | "note_work_document" | "note_health_document" | "note_house_document" | "note_transport_document" | "note_activity_document" | "note_finance" | "note_invoice" | "note_other";
|
|
1445
|
+
export type iconPeopleLabels = "national_id_card" | "other_identity_document" | "resume" | "work_disability_recognition";
|
|
1446
1446
|
export type iconWorkLabels = "work_contract" | "employment_center_certificate" | "unemployment_benefit" | "student_card" | "motivation_letter" | "other_work_document" | "school_attendance_certificate" | "school_insurance_certificate";
|
|
1447
1447
|
export type iconJusticeLabels = "fine";
|
|
1448
1448
|
export type iconGlobeLabels = "residence_permit";
|
|
@@ -1472,7 +1472,7 @@ export type iconFitnessLabels = "personal_sporting_licence" | "other_activity_do
|
|
|
1472
1472
|
export type iconHeartLabels = "health_book" | "health_certificate" | "pregnancy_medical_certificate" | "national_health_insurance_card" | "national_health_insurance_right_certificate" | "health_insurance_card" | "prescription" | "health_invoice" | "other_health_document" | "person_insurance";
|
|
1473
1473
|
export type iconExchangeLabels = "bank_statement";
|
|
1474
1474
|
export type iconFileTypeNoteLabels = "note_identity_document" | "note_family_document" | "note_work_document" | "note_health_document" | "note_house_document" | "note_transport_document" | "note_activity_document" | "note_finance" | "note_invoice";
|
|
1475
|
-
export type IconQualificationLabels = "
|
|
1475
|
+
export type IconQualificationLabels = "work" | "car" | "telecom" | "water" | "bank" | "child" | "bank-check" | "benefit" | "bill" | "email" | "euro" | "exchange" | "file-type-note" | "fitness" | "globe" | "gouv" | "heart" | "home" | "image" | "justice" | "laudry" | "lightning" | "people" | "plane" | "remboursement" | "restaurant" | "school" | "shop" | "team" | "telephone";
|
|
1476
1476
|
export type iconLabelPairs = {
|
|
1477
1477
|
icon: IconQualificationLabels;
|
|
1478
1478
|
labels: Array<string>;
|