@bapp/api-client
Version:
Client to consume BAPP API, auto-generated using openapi-typescript-codegen
1,464 lines (1,463 loc) • 333 kB
TypeScript
export declare const $AcceptMonthCostsBappTask: {
readonly type: "object";
readonly description: "Create a base serializer to be used trough BAPP API companies endpoint";
readonly properties: {
readonly id: {
readonly type: "integer";
readonly readOnly: true;
};
readonly file: {
readonly type: "string";
readonly format: "uri";
readonly readOnly: true;
readonly nullable: true;
};
readonly location: {
readonly type: "integer";
readonly readOnly: true;
};
readonly period: {
readonly type: "string";
readonly format: "date";
readonly readOnly: true;
};
readonly is_accepted: {
readonly type: "boolean";
readonly readOnly: true;
};
};
};
export declare const $Address: {
readonly type: "object";
readonly description: "Base model serializer for User owned information";
readonly properties: {
readonly name: {
readonly type: "string";
readonly title: "Nume";
readonly maxLength: 200;
};
readonly country: {
readonly type: "string";
};
readonly region: {
readonly type: "integer";
readonly nullable: true;
};
readonly city: {
readonly type: "integer";
readonly nullable: true;
};
readonly address: {
readonly type: "string";
readonly maxLength: 200;
};
readonly complete_address: {
readonly type: "string";
readonly readOnly: true;
};
};
readonly required: readonly ["address", "country", "name"];
};
export declare const $AddressRequest: {
readonly type: "object";
readonly description: "Base model serializer for User owned information";
readonly properties: {
readonly name: {
readonly type: "string";
readonly minLength: 1;
readonly title: "Nume";
readonly maxLength: 200;
};
readonly country: {
readonly type: "string";
readonly minLength: 1;
};
readonly region: {
readonly type: "integer";
readonly nullable: true;
};
readonly city: {
readonly type: "integer";
readonly nullable: true;
};
readonly address: {
readonly type: "string";
readonly minLength: 1;
readonly maxLength: 200;
};
};
readonly required: readonly ["address", "country", "name"];
};
export declare const $AndroidEvent: {
readonly type: "object";
readonly description: "Create a base serializer to be used trough BAPP API companies endpoint";
readonly properties: {
readonly action: {
readonly type: "string";
readonly description: "The event action identifier";
};
readonly device_id: {
readonly type: "string";
readonly description: "The unique device identifier";
};
readonly device_name: {
readonly type: "string";
readonly description: "The Device name";
};
readonly payload: {
readonly nullable: true;
readonly description: "The event payload";
};
};
readonly required: readonly ["action", "device_id", "device_name"];
};
export declare const $AndroidEventRequest: {
readonly type: "object";
readonly description: "Create a base serializer to be used trough BAPP API companies endpoint";
readonly properties: {
readonly action: {
readonly type: "string";
readonly minLength: 1;
readonly description: "The event action identifier";
};
readonly device_id: {
readonly type: "string";
readonly minLength: 1;
readonly description: "The unique device identifier";
};
readonly device_name: {
readonly type: "string";
readonly minLength: 1;
readonly description: "The Device name";
};
readonly payload: {
readonly nullable: true;
readonly description: "The event payload";
};
};
readonly required: readonly ["action", "device_id", "device_name"];
};
export declare const $AppTypeEnum: {
readonly enum: readonly ["restaurant_menu", "hotel_app", "reservation_app", "finder_app", "mobile_link"];
readonly type: "string";
readonly description: "* `restaurant_menu` - Meniu restaurant\n* `hotel_app` - Aplicatie hoteluri\n* `reservation_app` - Aplicatie rezervari\n* `finder_app` - Aplicatie lost & found\n* `mobile_link` - Link mobil";
};
export declare const $AvailableJson: {
readonly type: "object";
readonly properties: {
readonly type: {
readonly allOf: readonly [{
readonly $ref: "#/components/schemas/TypeEnum";
}];
readonly description: "The type of the JSON\n\n* `task` - task\n* `widget` - widget\n* `iftt_trigger` - iftt_trigger\n* `iftt_action` - iftt_action\n* `iftt_condition` - iftt_condition";
};
readonly code: {
readonly type: "string";
readonly description: "The task code";
readonly maxLength: 100;
};
readonly title: {
readonly type: "string";
readonly description: "The task title";
readonly maxLength: 100;
};
readonly description: {
readonly type: "string";
readonly description: "The task description";
};
readonly permissions: {
readonly type: "string";
readonly description: "The task permissions";
};
};
readonly required: readonly ["code", "title", "type"];
};
export declare const $BankAccount: {
readonly type: "object";
readonly description: "Base model serializer for User owned information";
readonly properties: {
readonly id: {
readonly type: "integer";
readonly readOnly: true;
};
readonly user: {
readonly type: "string";
readonly format: "uuid";
readonly nullable: true;
};
readonly company: {
readonly type: "integer";
readonly nullable: true;
};
readonly account_id: {
readonly type: "string";
readonly maxLength: 255;
};
readonly iban: {
readonly type: "string";
readonly maxLength: 100;
};
readonly currency: {
readonly type: "string";
readonly title: "Cod";
readonly description: "ISO 4217 code";
readonly nullable: true;
};
readonly owner_name: {
readonly type: "string";
readonly maxLength: 255;
};
readonly balance: {
readonly type: "string";
readonly format: "decimal";
readonly pattern: "^-?d{0,17}(?:.d{0,2})?$";
};
readonly balance_date: {
readonly type: "string";
readonly format: "date";
readonly nullable: true;
};
readonly active: {
readonly type: "boolean";
};
readonly sync_enabled: {
readonly type: "string";
readonly readOnly: true;
};
readonly institution_id: {
readonly type: "string";
readonly readOnly: true;
};
readonly provider: {
readonly type: "integer";
readonly readOnly: true;
readonly nullable: true;
};
readonly last_sync_error: {
readonly type: "string";
readonly maxLength: 200;
};
};
readonly required: readonly ["iban", "owner_name"];
};
export declare const $BankAccountRequest: {
readonly type: "object";
readonly description: "Base model serializer for User owned information";
readonly properties: {
readonly user: {
readonly type: "string";
readonly format: "uuid";
readonly nullable: true;
};
readonly company: {
readonly type: "integer";
readonly nullable: true;
};
readonly account_id: {
readonly type: "string";
readonly maxLength: 255;
};
readonly iban: {
readonly type: "string";
readonly minLength: 1;
readonly maxLength: 100;
};
readonly currency: {
readonly type: "string";
readonly minLength: 1;
readonly title: "Cod";
readonly description: "ISO 4217 code";
readonly nullable: true;
};
readonly owner_name: {
readonly type: "string";
readonly minLength: 1;
readonly maxLength: 255;
};
readonly balance: {
readonly type: "string";
readonly format: "decimal";
readonly pattern: "^-?d{0,17}(?:.d{0,2})?$";
};
readonly balance_date: {
readonly type: "string";
readonly format: "date";
readonly nullable: true;
};
readonly active: {
readonly type: "boolean";
};
readonly last_sync_error: {
readonly type: "string";
readonly maxLength: 200;
};
};
readonly required: readonly ["iban", "owner_name"];
};
export declare const $BankInstitution: {
readonly type: "object";
readonly description: "Get all available banks";
readonly properties: {
readonly id: {
readonly type: "string";
};
readonly name: {
readonly type: "string";
};
readonly logo: {
readonly type: "string";
};
};
readonly required: readonly ["id", "logo", "name"];
};
export declare const $BankTransaction: {
readonly type: "object";
readonly description: "Base model serializer for User owned information";
readonly properties: {
readonly id: {
readonly type: "integer";
readonly readOnly: true;
};
readonly account: {
readonly type: "integer";
readonly readOnly: true;
};
readonly internal_id: {
readonly type: "string";
readonly readOnly: true;
readonly default: "";
readonly description: "Internal identifier";
};
readonly identifier: {
readonly type: "string";
readonly readOnly: true;
readonly description: "Bank transaction identifier";
};
readonly date: {
readonly type: "string";
readonly format: "date";
readonly readOnly: true;
};
readonly value: {
readonly type: "string";
readonly format: "decimal";
readonly pattern: "^-?d{0,17}(?:.d{0,2})?$";
readonly readOnly: true;
};
readonly description: {
readonly type: "string";
readonly readOnly: true;
};
readonly name: {
readonly type: "string";
readonly readOnly: true;
};
readonly iban: {
readonly type: "string";
readonly readOnly: true;
};
readonly content_type: {
readonly type: "integer";
readonly nullable: true;
};
readonly object_id: {
readonly type: "integer";
readonly maximum: 2147483647;
readonly minimum: 0;
readonly nullable: true;
};
readonly resolved: {
readonly type: "boolean";
readonly description: "If there is no content object you can set this and wish to resolve this, you can set it to True";
};
readonly extra: {};
};
};
export declare const $BankTransactionRequest: {
readonly type: "object";
readonly description: "Base model serializer for User owned information";
readonly properties: {
readonly content_type: {
readonly type: "integer";
readonly nullable: true;
};
readonly object_id: {
readonly type: "integer";
readonly maximum: 2147483647;
readonly minimum: 0;
readonly nullable: true;
};
readonly resolved: {
readonly type: "boolean";
readonly description: "If there is no content object you can set this and wish to resolve this, you can set it to True";
};
readonly extra: {};
};
};
export declare const $BlankEnum: {
readonly enum: readonly [""];
};
export declare const $CaenCodeModel: {
readonly type: "object";
readonly properties: {
readonly id: {
readonly type: "string";
readonly maxLength: 10;
};
readonly name: {
readonly type: "string";
readonly maxLength: 200;
};
readonly level: {
readonly type: "integer";
readonly maximum: 32767;
readonly minimum: 0;
};
readonly parent: {
readonly type: "string";
readonly nullable: true;
};
};
readonly required: readonly ["id", "name"];
};
export declare const $CategoryEnum: {
readonly enum: readonly [0, 1, 2, 3, 4];
readonly type: "integer";
readonly description: "* `0` - Servicii\n* `1` - Stoc\n* `2` - Imobilizari\n* `3` - Discount\n* `4` - Timbru verde";
};
export declare const $ClientProductCodeEnum: {
readonly enum: readonly ["empty", "code", "code_ean", "id"];
readonly type: "string";
readonly description: "* `empty` - Nu se trimite\n* `code` - Cod intern\n* `code_ean` - Cod EAN\n* `id` - ID BAPP";
};
export declare const $CompanyBankAccount: {
readonly type: "object";
readonly description: "Create a base serializer to be used trough BAPP API companies endpoint";
readonly properties: {
readonly id: {
readonly type: "integer";
readonly readOnly: true;
};
readonly iban: {
readonly type: "string";
readonly title: "Cont IBAN";
readonly maxLength: 35;
};
readonly currency: {
readonly type: "string";
readonly title: "Cod";
readonly description: "ISO 4217 code";
};
readonly bank: {
readonly type: "string";
readonly maxLength: 100;
};
readonly description: {
readonly type: "string";
readonly title: "Descriere";
readonly maxLength: 200;
};
readonly used_on_documents: {
readonly type: "boolean";
readonly title: "Utilizat în documente";
};
};
readonly required: readonly ["bank", "currency", "iban"];
};
export declare const $CompanyBankAccountRequest: {
readonly type: "object";
readonly description: "Create a base serializer to be used trough BAPP API companies endpoint";
readonly properties: {
readonly iban: {
readonly type: "string";
readonly minLength: 1;
readonly title: "Cont IBAN";
readonly maxLength: 35;
};
readonly currency: {
readonly type: "string";
readonly minLength: 1;
readonly title: "Cod";
readonly description: "ISO 4217 code";
};
readonly bank: {
readonly type: "string";
readonly minLength: 1;
readonly maxLength: 100;
};
readonly description: {
readonly type: "string";
readonly title: "Descriere";
readonly maxLength: 200;
};
readonly used_on_documents: {
readonly type: "boolean";
readonly title: "Utilizat în documente";
};
};
readonly required: readonly ["bank", "currency", "iban"];
};
export declare const $CompanyBaseSettings: {
readonly type: "object";
readonly properties: {
readonly currencies: {
readonly type: "array";
readonly items: {
readonly $ref: "#/components/schemas/CurrenciesEnum";
};
readonly default: readonly ["RON"];
};
readonly default_currency: {
readonly allOf: readonly [{
readonly $ref: "#/components/schemas/DefaultCurrencyEnum";
}];
readonly default: "RON";
};
readonly languages: {
readonly type: "array";
readonly items: {
readonly $ref: "#/components/schemas/LanguagesEnum";
};
readonly default: readonly ["RO"];
};
readonly price: {
readonly type: "integer";
readonly maximum: 4;
readonly minimum: 2;
readonly default: 2;
};
readonly quantity: {
readonly type: "integer";
readonly maximum: 4;
readonly minimum: 0;
readonly default: 2;
};
readonly primary_color: {
readonly type: "string";
readonly nullable: true;
};
readonly client_product_code: {
readonly allOf: readonly [{
readonly $ref: "#/components/schemas/ClientProductCodeEnum";
}];
readonly default: "empty";
readonly description: "What product code should be used in client interfaces(eFactura, stocks etc.)\n\n* `empty` - Nu se trimite\n* `code` - Cod intern\n* `code_ean` - Cod EAN\n* `id` - ID BAPP";
};
};
};
export declare const $CompanyBaseSettingsRequest: {
readonly type: "object";
readonly properties: {
readonly currencies: {
readonly type: "array";
readonly items: {
readonly $ref: "#/components/schemas/CurrenciesEnum";
};
readonly default: readonly ["RON"];
};
readonly default_currency: {
readonly allOf: readonly [{
readonly $ref: "#/components/schemas/DefaultCurrencyEnum";
}];
readonly default: "RON";
};
readonly languages: {
readonly type: "array";
readonly items: {
readonly $ref: "#/components/schemas/LanguagesEnum";
};
readonly default: readonly ["RO"];
};
readonly price: {
readonly type: "integer";
readonly maximum: 4;
readonly minimum: 2;
readonly default: 2;
};
readonly quantity: {
readonly type: "integer";
readonly maximum: 4;
readonly minimum: 0;
readonly default: 2;
};
readonly primary_color: {
readonly type: "string";
readonly nullable: true;
readonly minLength: 1;
};
readonly client_product_code: {
readonly allOf: readonly [{
readonly $ref: "#/components/schemas/ClientProductCodeEnum";
}];
readonly default: "empty";
readonly description: "What product code should be used in client interfaces(eFactura, stocks etc.)\n\n* `empty` - Nu se trimite\n* `code` - Cod intern\n* `code_ean` - Cod EAN\n* `id` - ID BAPP";
};
};
};
export declare const $CompanyBaseUserProductSettings: {
readonly type: "object";
readonly properties: {
readonly search_by_id: {
readonly type: "boolean";
readonly default: false;
readonly description: "Search by BAPP internal ID.";
};
readonly product_display: {
readonly type: "string";
readonly default: "[name]";
readonly description: "How should a product be displayed in the application product select list.";
};
};
};
export declare const $CompanyBaseUserProductSettingsRequest: {
readonly type: "object";
readonly properties: {
readonly search_by_id: {
readonly type: "boolean";
readonly default: false;
readonly description: "Search by BAPP internal ID.";
};
readonly product_display: {
readonly type: "string";
readonly minLength: 1;
readonly default: "[name]";
readonly description: "How should a product be displayed in the application product select list.";
};
};
};
export declare const $CompanyCreate: {
readonly type: "object";
readonly description: "Add a company using the selected package";
readonly properties: {
readonly company_id: {
readonly type: "integer";
readonly readOnly: true;
readonly description: "The new id of the company";
};
};
};
export declare const $CompanyCreateRequest: {
readonly type: "object";
readonly description: "Add a company using the selected package";
readonly properties: {
readonly cif: {
readonly type: "string";
readonly writeOnly: true;
readonly minLength: 1;
readonly maxLength: 20;
};
readonly package: {
readonly allOf: readonly [{
readonly $ref: "#/components/schemas/PackageEnum";
}];
readonly writeOnly: true;
readonly default: readonly ["package-starter", "Starter"];
};
readonly yearly_period: {
readonly type: "boolean";
readonly writeOnly: true;
readonly default: false;
};
};
readonly required: readonly ["cif"];
};
export declare const $CompanyCreditsLog: {
readonly type: "object";
readonly description: "Create a base serializer to be used trough BAPP API companies endpoint";
readonly properties: {
readonly date: {
readonly type: "string";
readonly format: "date-time";
readonly readOnly: true;
};
readonly credits_before: {
readonly type: "integer";
readonly maximum: 2147483647;
readonly minimum: -2147483648;
};
readonly amount: {
readonly type: "integer";
readonly maximum: 2147483647;
readonly minimum: -2147483648;
};
readonly credits_after: {
readonly type: "integer";
readonly maximum: 2147483647;
readonly minimum: -2147483648;
};
readonly description: {
readonly type: "string";
readonly maxLength: 500;
};
};
readonly required: readonly ["amount", "credits_after", "credits_before"];
};
export declare const $CompanyDevice: {
readonly type: "object";
readonly description: "Devices that the company has access to";
readonly properties: {
readonly id: {
readonly type: "string";
readonly maxLength: 23;
};
readonly username: {
readonly type: "string";
readonly format: "uuid";
};
readonly companies: {
readonly type: "array";
readonly items: {
readonly type: "integer";
};
readonly description: "Companies allowed to send/read data.";
};
readonly is_default: {
readonly type: "string";
readonly readOnly: true;
};
readonly last_active: {
readonly type: "string";
readonly format: "date-time";
readonly description: "Last interaction with device";
};
readonly created_at: {
readonly type: "string";
readonly format: "date-time";
readonly readOnly: true;
readonly description: "First time this device was created";
};
readonly modified_at: {
readonly type: "string";
readonly format: "date-time";
readonly readOnly: true;
readonly description: "Last time the record was updated";
};
readonly claimed_at: {
readonly type: "string";
readonly format: "date-time";
readonly nullable: true;
readonly description: "When someone claimed this device";
};
readonly device_type: {
readonly allOf: readonly [{
readonly $ref: "#/components/schemas/DeviceTypeEnum";
}];
readonly minimum: 0;
readonly maximum: 32767;
};
readonly extra: {};
readonly friendly_name: {
readonly type: "string";
readonly readOnly: true;
};
};
readonly required: readonly ["id"];
};
export declare const $CompanyDeviceRequest: {
readonly type: "object";
readonly description: "Devices that the company has access to";
readonly properties: {
readonly id: {
readonly type: "string";
readonly minLength: 1;
readonly maxLength: 23;
};
readonly username: {
readonly type: "string";
readonly format: "uuid";
};
readonly companies: {
readonly type: "array";
readonly items: {
readonly type: "integer";
};
readonly description: "Companies allowed to send/read data.";
};
readonly last_active: {
readonly type: "string";
readonly format: "date-time";
readonly description: "Last interaction with device";
};
readonly claimed_at: {
readonly type: "string";
readonly format: "date-time";
readonly nullable: true;
readonly description: "When someone claimed this device";
};
readonly device_type: {
readonly allOf: readonly [{
readonly $ref: "#/components/schemas/DeviceTypeEnum";
}];
readonly minimum: 0;
readonly maximum: 32767;
};
readonly extra: {};
readonly set_friendly_name: {
readonly type: "string";
readonly writeOnly: true;
readonly minLength: 1;
readonly description: "Set a friendly name for the device";
};
};
readonly required: readonly ["id"];
};
export declare const $CompanyDeviceSettings: {
readonly type: "object";
readonly properties: {
readonly default_device: {
readonly type: "string";
readonly nullable: true;
readonly description: "The default device for the company (id)";
};
};
};
export declare const $CompanyDeviceSettingsRequest: {
readonly type: "object";
readonly properties: {
readonly default_device: {
readonly type: "string";
readonly nullable: true;
readonly minLength: 1;
readonly description: "The default device for the company (id)";
};
};
};
export declare const $CompanyEmailReceiver: {
readonly type: "object";
readonly properties: {
readonly enabled: {
readonly type: "boolean";
readonly default: true;
};
readonly only_whitelist: {
readonly type: "boolean";
readonly default: false;
};
readonly whitelist: {
readonly type: "array";
readonly items: {
readonly type: "string";
readonly format: "email";
};
readonly default: readonly [];
};
};
};
export declare const $CompanyEmailReceiverRequest: {
readonly type: "object";
readonly properties: {
readonly enabled: {
readonly type: "boolean";
readonly default: true;
};
readonly only_whitelist: {
readonly type: "boolean";
readonly default: false;
};
readonly whitelist: {
readonly type: "array";
readonly items: {
readonly type: "string";
readonly format: "email";
readonly minLength: 1;
};
readonly default: readonly [];
};
};
};
export declare const $CompanyInfo: {
readonly type: "object";
readonly properties: {
readonly valid: {
readonly type: "boolean";
readonly description: "if requested cif is valid or not";
};
readonly cif: {
readonly type: "string";
readonly description: "Company's CIF";
};
readonly vat: {
readonly type: "string";
readonly description: "Company's VAT ID (If the company pays VAT the full vat id, otherwise it's the same as cif)";
};
readonly name: {
readonly type: "string";
readonly description: "Company's name";
};
readonly reg_com: {
readonly type: "string";
readonly description: "Company's registration number";
};
readonly address: {
readonly type: "string";
readonly description: "Company's address";
};
readonly city: {
readonly type: "string";
readonly description: "Company's city name";
};
readonly city_id: {
readonly type: "integer";
readonly description: "Company's city ID in bapp database";
};
readonly region: {
readonly type: "string";
readonly description: "Company's region name";
};
readonly region_id: {
readonly type: "integer";
readonly description: "Company's region ID in bapp database";
};
readonly country: {
readonly type: "string";
readonly description: "Company's country name";
};
readonly caen_code: {
readonly type: "string";
readonly description: "Company's CAEN code";
};
readonly caen_name: {
readonly type: "string";
readonly description: "Company's CAEN code description";
};
};
};
export declare const $CompanyInvoiceSettings: {
readonly type: "object";
readonly properties: {
readonly efactura_send_days: {
readonly type: "integer";
readonly maximum: 5;
readonly minimum: 0;
readonly default: 3;
readonly description: "Zile pana la trimiterea facturilor catre ANAF";
};
readonly efactura_attach_pdf: {
readonly type: "boolean";
readonly default: false;
readonly description: "Ataseaza pdf factura la xml";
};
readonly efactura_send_to_pf: {
readonly type: "boolean";
readonly default: false;
readonly description: "Trimite factura pentru persoane fizice";
};
readonly efactura_storno_as_credit_note: {
readonly type: "boolean";
readonly default: true;
readonly description: "Trimite facturile storno cu tip CreditNote";
};
readonly embed_attachments: {
readonly type: "boolean";
readonly default: false;
readonly description: "Incorporateaza anexele in pdf-ul facturii";
};
};
};
export declare const $CompanyInvoiceSettingsRequest: {
readonly type: "object";
readonly properties: {
readonly efactura_send_days: {
readonly type: "integer";
readonly maximum: 5;
readonly minimum: 0;
readonly default: 3;
readonly description: "Zile pana la trimiterea facturilor catre ANAF";
};
readonly efactura_attach_pdf: {
readonly type: "boolean";
readonly default: false;
readonly description: "Ataseaza pdf factura la xml";
};
readonly efactura_send_to_pf: {
readonly type: "boolean";
readonly default: false;
readonly description: "Trimite factura pentru persoane fizice";
};
readonly efactura_storno_as_credit_note: {
readonly type: "boolean";
readonly default: true;
readonly description: "Trimite facturile storno cu tip CreditNote";
};
readonly embed_attachments: {
readonly type: "boolean";
readonly default: false;
readonly description: "Incorporateaza anexele in pdf-ul facturii";
};
};
};
export declare const $CompanyLocation: {
readonly type: "object";
readonly description: "Create a base serializer to be used trough BAPP API companies endpoint";
readonly properties: {
readonly id: {
readonly type: "integer";
readonly readOnly: true;
};
readonly country: {
readonly type: "string";
};
readonly region: {
readonly type: "integer";
readonly nullable: true;
};
readonly city: {
readonly type: "integer";
readonly nullable: true;
};
readonly address: {
readonly type: "string";
readonly maxLength: 200;
};
readonly name: {
readonly type: "string";
readonly title: "Nume";
readonly maxLength: 100;
};
readonly vat_id: {
readonly type: "string";
readonly title: "CIF";
readonly maxLength: 100;
};
readonly is_pickup: {
readonly type: "boolean";
readonly description: "Este folosita pentru ridicare colete";
};
readonly is_return: {
readonly type: "boolean";
readonly description: "Este folosita pentru primire colete retur";
};
readonly is_warehouse: {
readonly type: "boolean";
readonly description: "Este folosit pentru a gestiona o magazie";
};
};
readonly required: readonly ["address", "country", "name"];
};
export declare const $CompanyLocationRequest: {
readonly type: "object";
readonly description: "Create a base serializer to be used trough BAPP API companies endpoint";
readonly properties: {
readonly country: {
readonly type: "string";
readonly minLength: 1;
};
readonly region: {
readonly type: "integer";
readonly nullable: true;
};
readonly city: {
readonly type: "integer";
readonly nullable: true;
};
readonly address: {
readonly type: "string";
readonly minLength: 1;
readonly maxLength: 200;
};
readonly name: {
readonly type: "string";
readonly minLength: 1;
readonly title: "Nume";
readonly maxLength: 100;
};
readonly vat_id: {
readonly type: "string";
readonly title: "CIF";
readonly maxLength: 100;
};
readonly is_pickup: {
readonly type: "boolean";
readonly description: "Este folosita pentru ridicare colete";
};
readonly is_return: {
readonly type: "boolean";
readonly description: "Este folosita pentru primire colete retur";
};
readonly is_warehouse: {
readonly type: "boolean";
readonly description: "Este folosit pentru a gestiona o magazie";
};
};
readonly required: readonly ["address", "country", "name"];
};
export declare const $CompanyOrder: {
readonly type: "object";
readonly properties: {
readonly add_order_no_to_invoices: {
readonly type: "boolean";
readonly default: false;
readonly description: "Add order number to invoices notes automatically.";
};
readonly add_descriptions: {
readonly type: "boolean";
readonly default: false;
readonly description: "Add product descriptions to items and invoices";
};
readonly product_reservations: {
readonly type: "boolean";
readonly default: false;
readonly description: "Rezerva produsele din stocul local";
};
};
};
export declare const $CompanyOrderRequest: {
readonly type: "object";
readonly properties: {
readonly add_order_no_to_invoices: {
readonly type: "boolean";
readonly default: false;
readonly description: "Add order number to invoices notes automatically.";
};
readonly add_descriptions: {
readonly type: "boolean";
readonly default: false;
readonly description: "Add product descriptions to items and invoices";
};
readonly product_reservations: {
readonly type: "boolean";
readonly default: false;
readonly description: "Rezerva produsele din stocul local";
};
};
};
export declare const $CompanyPackage: {
readonly type: "object";
readonly properties: {
readonly code: {
readonly type: "string";
readonly description: "The package code.";
};
readonly name: {
readonly type: "string";
readonly description: "The package name.";
};
readonly description: {
readonly type: "string";
readonly description: "The package description.";
};
readonly type: {
readonly type: "string";
readonly description: "The package type(for a specific niche).";
};
readonly price: {
readonly type: "string";
readonly format: "decimal";
readonly pattern: "^-?d{0,8}(?:.d{0,2})?$";
readonly description: "Monthly price for the package(without VAT).";
};
readonly price_yearly: {
readonly type: "string";
readonly format: "decimal";
readonly pattern: "^-?d{0,8}(?:.d{0,2})?$";
readonly default: "0.00";
readonly description: "Yearly price for the package(without VAT).";
};
readonly trial_days: {
readonly type: "integer";
readonly default: 0;
readonly description: "Number of days for trial period.";
};
};
readonly required: readonly ["code", "description", "name", "price", "type"];
};
export declare const $CompanyPackageAdd: {
readonly type: "object";
readonly description: "Activates a new package for a company";
readonly properties: {
readonly package: {
readonly $ref: "#/components/schemas/PackageEnum";
};
readonly yearly_period: {
readonly type: "boolean";
readonly default: false;
};
};
readonly required: readonly ["package"];
};
export declare const $CompanyPackagesStatus: {
readonly type: "object";
readonly description: "Create a base serializer to be used trough BAPP API companies endpoint";
readonly properties: {
readonly packages: {
readonly type: "array";
readonly items: {
readonly $ref: "#/components/schemas/PackageStatus";
};
};
};
readonly required: readonly ["packages"];
};
export declare const $CompanyPartnerSettings: {
readonly type: "object";
readonly properties: {
readonly cumulate_balance_with_supplier: {
readonly type: "boolean";
readonly default: true;
readonly description: "When checking for overall partner balance, if we should cumulate the balance with the supplier balance.";
};
};
};
export declare const $CompanyPartnerSettingsRequest: {
readonly type: "object";
readonly properties: {
readonly cumulate_balance_with_supplier: {
readonly type: "boolean";
readonly default: true;
readonly description: "When checking for overall partner balance, if we should cumulate the balance with the supplier balance.";
};
};
};
export declare const $CompanyPrint: {
readonly type: "object";
readonly description: "Create a base serializer to be used trough BAPP API companies endpoint";
readonly properties: {
readonly result: {
readonly type: "string";
readonly readOnly: true;
readonly description: "The result of the print operation";
};
};
};
export declare const $CompanyPrintRequest: {
readonly type: "object";
readonly description: "Create a base serializer to be used trough BAPP API companies endpoint";
readonly properties: {
readonly file: {
readonly type: "string";
readonly format: "binary";
readonly writeOnly: true;
readonly description: "If you want to print a specific file";
};
readonly url: {
readonly type: "string";
readonly format: "uri";
readonly writeOnly: true;
readonly minLength: 1;
readonly description: "If you want to print a file from a url";
};
readonly copies: {
readonly type: "integer";
readonly writeOnly: true;
readonly default: 1;
readonly description: "Number of copies to print";
};
readonly printer: {
readonly type: "string";
readonly writeOnly: true;
readonly minLength: 1;
readonly description: "The printer to use. If not defined the device default will be used.";
readonly maxLength: 100;
};
readonly device: {
readonly type: "string";
readonly writeOnly: true;
readonly minLength: 1;
readonly description: "The device to print on. If not defined the company default will be used.";
readonly maxLength: 23;
};
};
};
export declare const $CompanyProductSettings: {
readonly type: "object";
readonly properties: {
readonly excluded_categories_with_no_stock: {
readonly type: "array";
readonly items: {
readonly allOf: readonly [{
readonly $ref: "#/components/schemas/ExcludedCategoriesWithNoStockEnum";
}];
readonly description: "";
};
};
};
};
export declare const $CompanyProductSettingsRequest: {
readonly type: "object";
readonly properties: {
readonly excluded_categories_with_no_stock: {
readonly type: "array";
readonly items: {
readonly allOf: readonly [{
readonly $ref: "#/components/schemas/ExcludedCategoriesWithNoStockEnum";
}];
readonly description: "";
};
};
};
};
export declare const $CompanySagaSettings: {
readonly type: "object";
readonly properties: {
readonly last_sync: {
readonly type: "string";
readonly format: "date-time";
readonly readOnly: true;
readonly nullable: true;
readonly description: "Last syncronisation date/time";
};
readonly password: {
readonly type: "string";
readonly nullable: true;
readonly description: "Authorisation password used for Saga";
};
readonly sync_target: {
readonly allOf: readonly [{
readonly $ref: "#/components/schemas/SyncTargetEnum";
}];
readonly default: "last_month";
readonly description: "Sync period\n\n* `last_month` - Last Month\n* `last_2_months` - Last 2 months\n* `last_3_months` - Last 3 months";
};
readonly sync_supplier_invoices: {
readonly type: "boolean";
readonly default: false;
readonly description: "Sync supplier invoices";
};
readonly sync_income: {
readonly type: "boolean";
readonly default: false;
readonly description: "Sync income";
};
readonly sync_payments: {
readonly type: "boolean";
readonly default: false;
readonly description: "Sync payments";
};
readonly sync_invoices: {
readonly type: "boolean";
readonly default: true;
readonly description: "Sync invoices";
};
readonly sync_products: {
readonly type: "boolean";
readonly default: false;
readonly description: "Sync products";
};
readonly sync_clients: {
readonly type: "boolean";
readonly default: false;
readonly description: "Sync clients";
};
};
};
export declare const $CompanySagaSettingsRequest: {
readonly type: "object";
readonly properties: {
readonly password: {
readonly type: "string";
readonly nullable: true;
readonly minLength: 1;
readonly description: "Authorisation password used for Saga";
};
readonly sync_target: {
readonly allOf: readonly [{
readonly $ref: "#/components/schemas/SyncTargetEnum";
}];
readonly default: "last_month";
readonly description: "Sync period\n\n* `last_month` - Last Month\n* `last_2_months` - Last 2 months\n* `last_3_months` - Last 3 months";
};
readonly sync_supplier_invoices: {
readonly type: "boolean";
readonly default: false;
readonly description: "Sync supplier invoices";
};
readonly sync_income: {
readonly type: "boolean";
readonly default: false;
readonly description: "Sync income";
};
readonly sync_payments: {
readonly type: "boolean";
readonly default: false;
readonly description: "Sync payments";
};
readonly sync_invoices: {
readonly type: "boolean";
readonly default: true;
readonly description: "Sync invoices";
};
readonly sync_products: {
readonly type: "boolean";
readonly default: false;
readonly description: "Sync products";
};
readonly sync_clients: {
readonly type: "boolean";
readonly default: false;
readonly description: "Sync clients";
};
};
};
export declare const $CompanySettings: {
readonly type: "object";
readonly description: "All company settings";
readonly properties: {
readonly company: {
readonly allOf: readonly [{
readonly $ref: "#/components/schemas/CompanyBaseSettings";
}];
readonly nullable: true;
};
readonly company_email_receiver: {
readonly allOf: readonly [{
readonly $ref: "#/components/schemas/CompanyEmailReceiver";
}];
readonly nullable: true;
};
readonly saga: {
readonly allOf: readonly [{
readonly $ref: "#/components/schemas/CompanySagaSettings";
}];
readonly nullable: true;
};
readonly company_device: {
readonly allOf: readonly [{
readonly $ref: "#/components/schemas/CompanyDeviceSettings";
}];
readonly nullable: true;
};
readonly company_partner: {
readonly allOf: readonly [{
readonly $ref: "#/components/schemas/CompanyPartnerSettings";
}];
readonly nullable: true;
};
readonly company_product: {
readonly allOf: readonly [{
readonly $ref: "#/components/schemas/CompanyProductSettings";
}];
readonly nullable: true;
};
readonly company_project: {
readonly allOf: readonly [{
readonly $ref: "#/components/schemas/ProjectSettings";
}];
readonly nullable: true;
};
readonly company_invoice: {
readonly allOf: readonly [{
readonly $ref: "#/components/schemas/CompanyInvoiceSettings";
}];
readonly nullable: true;
};
readonly company_supplier_order: {
readonly allOf: readonly [{
readonly $ref: "#/components/schemas/CompanySupplierOrder";
}];
readonly nullable: true;
};
readonly company_order: {
readonly allOf: readonly [{
readonly $ref: "#/components/schemas/CompanyOrder";
}];
readonly nullable: true;
};
readonly company_stock: {
readonly allOf: readonly [{
readonly $ref: "#/components/schemas/CompanyStockSettings";
}];
readonly nullable: true;
};
readonly company_timesheet: {
readonly allOf: readonly [{
readonly $ref: "#/components/schemas/CompanyTimeSheetSettings";