yellowgrid-api-ts 3.2.262 → 3.2.264-dev.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/.openapi-generator/FILES +418 -365
- package/.openapi-generator/VERSION +1 -1
- package/README.md +116 -3
- package/api.ts +9158 -3176
- package/base.ts +2 -2
- package/common.ts +3 -3
- package/config.json +4 -4
- package/configuration.ts +1 -1
- package/dist/api.d.ts +11799 -8220
- package/dist/api.js +14316 -9051
- package/dist/base.d.ts +1 -1
- package/dist/base.js +2 -2
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/AgentEnum.d.ts +48 -0
- package/dist/models/AgentEnum.js +50 -0
- package/dist/models/CategoryEnum.d.ts +108 -0
- package/dist/models/CategoryEnum.js +110 -0
- package/dist/models/ConnectionTypeEnum.d.ts +17 -7
- package/dist/models/ConnectionTypeEnum.js +17 -7
- package/dist/models/ReasonEnum.d.ts +18 -0
- package/dist/models/ReasonEnum.js +20 -0
- package/dist/models/ReportEnum.d.ts +11 -1
- package/dist/models/ReportEnum.js +11 -1
- package/dist/models/ResolutionEnum.d.ts +18 -0
- package/dist/models/ResolutionEnum.js +20 -0
- package/dist/models/RmaItemCreditTypeEnum.d.ts +13 -0
- package/dist/models/RmaItemCreditTypeEnum.js +15 -0
- package/dist/models/RmaItemResolutionEnum.d.ts +28 -0
- package/dist/models/RmaItemResolutionEnum.js +30 -0
- package/dist/models/RmaItemStatusEnum.d.ts +18 -0
- package/dist/models/RmaItemStatusEnum.js +20 -0
- package/dist/models/RmaStatusEnum.d.ts +33 -0
- package/dist/models/RmaStatusEnum.js +35 -0
- package/docs/AbstractOrderRequestDTO.md +4 -4
- package/docs/AccountAddressesDTO.md +3 -3
- package/docs/AccountContactEntity.md +13 -13
- package/docs/AccountContactModel.md +13 -13
- package/docs/AccountContactRequestModel.md +9 -9
- package/docs/AccountDetailedSummaryDTO.md +11 -9
- package/docs/AccountFinanceDTO.md +10 -10
- package/docs/AccountRequestModel.md +11 -11
- package/docs/AccountSummaryDTO.md +3 -3
- package/docs/AccountsApi.md +159 -1
- package/docs/AccountsResponseModel.md +4 -4
- package/docs/AddressDTO.md +12 -6
- package/docs/AddressModel.md +5 -5
- package/docs/AddressRequestModel.md +4 -4
- package/docs/AdminCustomerRmasModel.md +27 -0
- package/docs/AdminNumberPortDTO.md +7 -7
- package/docs/AdminOrderRequestDTO.md +4 -4
- package/docs/AdminRmaDTO.md +67 -0
- package/docs/AdminRmaItemDTO.md +51 -0
- package/docs/AdminRmaNoteDTO.md +27 -0
- package/docs/AdminRmaSummaryDTO.md +39 -0
- package/docs/AdminUserModel.md +7 -5
- package/docs/AgentHoursGraphModel.md +4 -4
- package/docs/AgentHoursGraphMonthModel.md +2 -2
- package/docs/ApiLogEntity.md +12 -12
- package/docs/AreaCodeModel.md +2 -2
- package/docs/AttachmentModel.md +5 -5
- package/docs/AttributeSetEnum.md +2 -2
- package/docs/AuditLogEntity.md +9 -9
- package/docs/AuthCodeResponseModel.md +1 -1
- package/docs/AxisDataDTO.md +1 -1
- package/docs/BasicItemDTO.md +2 -2
- package/docs/BasicProductDTO.md +2 -2
- package/docs/BatchDTO.md +17 -17
- package/docs/BatchEntity.md +17 -17
- package/docs/BillingApi.md +65 -7
- package/docs/BrandedVideoSummaryDTO.md +47 -0
- package/docs/BrandedVideosApi.md +424 -0
- package/docs/BrandedVideosSummariesModel.md +27 -0
- package/docs/CRMApi.md +60 -1
- package/docs/CallBarringModel.md +5 -5
- package/docs/CallJournalRequestModel.md +35 -0
- package/docs/Class3CXApi.md +49 -1
- package/docs/Class3CXInstallationWizardApi.md +385 -1
- package/docs/Class3CXInstallationsApi.md +1 -1
- package/docs/Class3CXIntegrationsApi.md +53 -1
- package/docs/Class3CXMultiTenantApi.md +1 -1
- package/docs/ClientDetailsModel.md +7 -7
- package/docs/ClientModel.md +4 -4
- package/docs/CollectionDateDTO.md +27 -0
- package/docs/CollectionDatesRequestDTO.md +23 -0
- package/docs/CompanyContractModel.md +5 -5
- package/docs/ContactInfoModel.md +5 -5
- package/docs/ConversationModel.md +8 -8
- package/docs/CourierPriceEntity.md +10 -10
- package/docs/CreditAccountEntity.md +25 -23
- package/docs/CreditNoteDTO.md +5 -1
- package/docs/CreditNoteEntity.md +5 -5
- package/docs/CreditNoteItemDTO.md +3 -1
- package/docs/CreditNoteItemEntity.md +7 -5
- package/docs/CreditNoteItemModel.md +7 -5
- package/docs/CreditNoteModel.md +5 -5
- package/docs/CrmActivitiesResponseDTO.md +2 -2
- package/docs/CrmActivityDTO.md +11 -3
- package/docs/CrmContactDTO.md +7 -7
- package/docs/CrmDateActivitiesDTO.md +1 -1
- package/docs/CrmNoteEntity.md +10 -10
- package/docs/CrmNoteModel.md +10 -10
- package/docs/CustomerCoordinatesDTO.md +5 -5
- package/docs/CustomerInformationModel.md +4 -4
- package/docs/CustomerItemRequestDTO.md +4 -2
- package/docs/CustomerListAccountDTO.md +13 -13
- package/docs/CustomerOrderRequestDTO.md +4 -4
- package/docs/CustomerPriceListEnum.md +2 -2
- package/docs/CustomerRmasModel.md +27 -0
- package/docs/CustomerSummaryReportDTO.md +6 -6
- package/docs/DdiRangeRequestModel.md +3 -3
- package/docs/DdiRangesRequestModel.md +1 -1
- package/docs/DetailedItemRequestDTO.md +4 -2
- package/docs/DetailedOrderRequestDTO.md +4 -4
- package/docs/DeviceModel.md +25 -0
- package/docs/DivertRequestModel.md +1 -1
- package/docs/DivertResponseModel.md +2 -2
- package/docs/EdTechProClientEntity.md +4 -4
- package/docs/EdTechProSchoolModel.md +11 -11
- package/docs/EdTechProSchoolsModel.md +4 -4
- package/docs/EdTechProSetupModel.md +5 -5
- package/docs/{PostSplitOrderRequest.md → EmailRequestModel.md} +6 -5
- package/docs/EngineeredWizardRequestModel.md +25 -0
- package/docs/EventDTO.md +8 -8
- package/docs/EventRequestDTO.md +3 -3
- package/docs/EventSubscriptionModel.md +2 -2
- package/docs/EventUpdateDTO.md +4 -4
- package/docs/EventUpdateEntity.md +5 -5
- package/docs/EventUpdateRequestDTO.md +3 -3
- package/docs/ExpiringKeyDTO.md +5 -5
- package/docs/FraudManagementModel.md +2 -2
- package/docs/FreshdeskCompanyTicketsModel.md +4 -4
- package/docs/FreshdeskTicketEntity.md +6 -6
- package/docs/FtpAccountsEntity.md +5 -5
- package/docs/GenericFileModel.md +3 -3
- package/docs/GetGetTcxHostingPriceList200Response.md +20 -0
- package/docs/GraphDTO.md +6 -6
- package/docs/HostingChangeResponseModel.md +5 -5
- package/docs/HostingRegionDTO.md +3 -3
- package/docs/InstallationDetailsDTO.md +3 -3
- package/docs/InstanceAutoFailoverEntity.md +5 -5
- package/docs/InstanceDeletionScheduleEntity.md +4 -4
- package/docs/InstanceEntity.md +21 -21
- package/docs/InstanceFailoverEntity.md +11 -11
- package/docs/InstanceMonitoringEntity.md +3 -3
- package/docs/InstanceMonitoringLogEntity.md +6 -6
- package/docs/InstanceScheduledTasksEntity.md +6 -6
- package/docs/InstanceTcxDetailsEntity.md +10 -10
- package/docs/InstanceUserCredentialsEntity.md +5 -5
- package/docs/ItemDTO.md +2 -2
- package/docs/ItemDiscountEntity.md +6 -6
- package/docs/ItemEntity.md +21 -21
- package/docs/ItemResolutionRequestModel.md +21 -0
- package/docs/LinkedOrderEntity.md +2 -2
- package/docs/MFARequiredModel.md +2 -2
- package/docs/MacAddressDTO.md +2 -2
- package/docs/MacAddressRequestModel.md +21 -0
- package/docs/MiscApi.md +1 -1
- package/docs/MonthlyUsageModel.md +2 -2
- package/docs/MultiTenantChangeResponseModel.md +4 -4
- package/docs/MyPBXToolsApi.md +1 -1
- package/docs/NameRequestModel.md +21 -0
- package/docs/NavigationModel.md +4 -4
- package/docs/NoteRequestModel.md +21 -0
- package/docs/NumberPortDTO.md +7 -7
- package/docs/NumberPortNoteDTO.md +5 -5
- package/docs/NumberPortRangeDTO.md +2 -2
- package/docs/NumberPortingApi.md +22 -22
- package/docs/NumberPortsModel.md +4 -4
- package/docs/OAuth20Api.md +5 -5
- package/docs/OfflineInstancesEntity.md +5 -5
- package/docs/OrderDTO.md +3 -3
- package/docs/OrderDetailsDTO.md +14 -10
- package/docs/OrderEntity.md +56 -56
- package/docs/OrderItemDTO.md +2 -2
- package/docs/OrderRequestModel.md +6 -6
- package/docs/OrderSummariesModel.md +4 -4
- package/docs/OrderSummaryDTO.md +12 -10
- package/docs/OrderTotalModel.md +7 -7
- package/docs/OrderedItemEntity.md +14 -14
- package/docs/OrderedItemModel.md +14 -14
- package/docs/OrdersApi.md +119 -6
- package/docs/PartnerDTO.md +12 -10
- package/docs/PasswordSenderDTO.md +2 -2
- package/docs/PasswordSenderEntity.md +7 -7
- package/docs/PatchApproveRmaRequest.md +20 -0
- package/docs/PortalAccountModel.md +25 -23
- package/docs/PortalLoginModel.md +7 -7
- package/docs/PostGenerateReport200Response.md +8 -8
- package/docs/PriceListItemModel.md +2 -2
- package/docs/PricingApi.md +5 -5
- package/docs/PrinterEntity.md +5 -5
- package/docs/PrizesEntity.md +6 -6
- package/docs/ProductDetailedSummaryDTO.md +2 -2
- package/docs/ProductPriceListItemModel.md +2 -2
- package/docs/{StockProductPriceModel.md → ProductPriceModel.md} +5 -5
- package/docs/ProductSearchResultsModel.md +1 -1
- package/docs/ProductSerialInfoDTO.md +27 -0
- package/docs/ProductSerialInfoModel.md +3 -3
- package/docs/ProductSummaryDTO.md +2 -2
- package/docs/ProductsApi.md +1 -1
- package/docs/PromoCodesEntity.md +13 -13
- package/docs/PromoItemModel.md +35 -0
- package/docs/PromoItemsEntity.md +8 -8
- package/docs/PromoModel.md +45 -0
- package/docs/PromoSummariesModel.md +27 -0
- package/docs/PromoSummaryDTO.md +31 -0
- package/docs/PromotionsApi.md +241 -0
- package/docs/ProspectDTO.md +7 -7
- package/docs/ProspectEntity.md +11 -11
- package/docs/ProspectsApi.md +1 -1
- package/docs/ProvisioningApi.md +1 -1
- package/docs/ProvisioningModel.md +3 -3
- package/docs/ProvisioningRequestEntity.md +3 -3
- package/docs/RMAApi.md +1753 -0
- package/docs/ReasonRequestModel.md +21 -0
- package/docs/RecordingBackupAzureModel.md +4 -4
- package/docs/RemoteStorageDTO.md +4 -4
- package/docs/ReportRequestDTO.md +1 -1
- package/docs/ReportsApi.md +1 -1
- package/docs/RequestDTO.md +29 -0
- package/docs/ResolutionRequestModel.md +21 -0
- package/docs/ResourceNotReadyException.md +3 -3
- package/docs/ResponseDTO.md +27 -0
- package/docs/RmaCollectionDTO.md +27 -0
- package/docs/RmaCreditItemRequestDTO.md +25 -0
- package/docs/RmaDTO.md +47 -0
- package/docs/RmaItemDTO.md +35 -0
- package/docs/RmaItemRequestDTO.md +25 -0
- package/docs/RmaOrderDTO.md +33 -0
- package/docs/RmaOrderItemDTO.md +37 -0
- package/docs/RmaOrderSummaryDTO.md +25 -0
- package/docs/RmaReplacementOrderItemDTO.md +23 -0
- package/docs/RmaReplacementOrderRequestDTO.md +21 -0
- package/docs/RmaRequestDTO.md +36 -0
- package/docs/RmaReturnDTO.md +31 -0
- package/docs/RmaSummaryDTO.md +31 -0
- package/docs/RmaSummaryItemDTO.md +23 -0
- package/docs/RootAccessModel.md +3 -3
- package/docs/S3BucketEntity.md +4 -4
- package/docs/SIPTrunksApi.md +1 -1
- package/docs/SMSApi.md +1 -1
- package/docs/ScannedItemModel.md +1 -1
- package/docs/ScopeModel.md +2 -2
- package/docs/SearchSchoolModel.md +35 -0
- package/docs/SerialNumberRequestModel.md +21 -0
- package/docs/SeriesDTO.md +3 -3
- package/docs/ServiceHealthDTO.md +2 -2
- package/docs/ServiceStatusDTO.md +4 -4
- package/docs/ServicesApi.md +1 -1
- package/docs/ShipmentAddressEntity.md +11 -11
- package/docs/ShipmentDTO.md +4 -4
- package/docs/ShipmentEntity.md +12 -12
- package/docs/ShipmentItemDTO.md +2 -2
- package/docs/ShipmentItemEntity.md +5 -5
- package/docs/ShipmentItemModel.md +5 -5
- package/docs/ShipmentModel.md +12 -12
- package/docs/ShipmentRequestDTO.md +4 -4
- package/docs/ShippingApi.md +57 -1
- package/docs/ShippingConsignmentModel.md +4 -4
- package/docs/ShippingInformationDTO.md +3 -3
- package/docs/ShippingRequestDTO.md +3 -3
- package/docs/ShippingServiceDTO.md +2 -2
- package/docs/ShippingServiceModel.md +4 -4
- package/docs/ShippingServicesModel.md +1 -1
- package/docs/SipTrunkChangeResponseModel.md +5 -5
- package/docs/SipTrunkCreationRequestModel.md +6 -6
- package/docs/SipTrunkEntity.md +12 -12
- package/docs/SipTrunksResponseModel.md +4 -4
- package/docs/SmsAccountDTO.md +6 -6
- package/docs/SmsAccountEntity.md +6 -6
- package/docs/SmsAccountRequestDTO.md +5 -5
- package/docs/SmsDataModel.md +1 -1
- package/docs/SmsMessageModel.md +3 -3
- package/docs/SmsNumbersEntity.md +2 -2
- package/docs/SmsPayloadModel.md +3 -3
- package/docs/SmsPhoneNumberModel.md +1 -1
- package/docs/SmsResponseModel.md +3 -3
- package/docs/SmsWhitelistEntity.md +2 -2
- package/docs/StockManagementApi.md +1 -1
- package/docs/StockOrderCourierEntity.md +4 -4
- package/docs/StockOrderDeductionModel.md +4 -4
- package/docs/StockOrderDeductionRequestModel.md +2 -2
- package/docs/StockOrderDeductionsEntity.md +4 -4
- package/docs/StockOrderEntity.md +22 -22
- package/docs/StockOrderItemEntity.md +7 -7
- package/docs/StockOrderItemModel.md +7 -7
- package/docs/StockOrderItemRequestModel.md +4 -4
- package/docs/StockOrderModel.md +14 -14
- package/docs/StockOrderProductEntity.md +6 -6
- package/docs/StockOrderRequestModel.md +3 -3
- package/docs/StockOrderSupplierEntity.md +9 -9
- package/docs/StockOrderSupplierModel.md +9 -9
- package/docs/StockOrdersModel.md +4 -4
- package/docs/StockProductModel.md +11 -9
- package/docs/StockProductSummariesModel.md +4 -4
- package/docs/StockProductSummaryModel.md +6 -6
- package/docs/StockReportItemModel.md +6 -6
- package/docs/StockReportModel.md +5 -5
- package/docs/StockTransactionsEntity.md +8 -8
- package/docs/SupplierEntity.md +9 -9
- package/docs/SupplierItemEntity.md +8 -8
- package/docs/SupplierItemModel.md +8 -8
- package/docs/SupplierItemsResultsDTO.md +1 -1
- package/docs/SupplierModel.md +9 -9
- package/docs/SupplierProductDTO.md +43 -0
- package/docs/SupplierProductModel.md +3 -3
- package/docs/SupplierProductResultsModel.md +4 -4
- package/docs/SuppliersApi.md +57 -1
- package/docs/SupportTicketModel.md +10 -10
- package/docs/SystemApi.md +1 -1
- package/docs/TableDTO.md +3 -3
- package/docs/TableDataDTO.md +1 -1
- package/docs/TableHistoryEntity.md +8 -8
- package/docs/TableRowDTO.md +1 -1
- package/docs/TcxBackupEntity.md +9 -9
- package/docs/TcxBackupModel.md +9 -9
- package/docs/TcxBillingEntity.md +10 -10
- package/docs/TcxBulkLicenceDetailsModel.md +2 -2
- package/docs/TcxDeadLicenceEntity.md +3 -3
- package/docs/TcxEngineerTaskDTO.md +29 -0
- package/docs/TcxEngineeringDTO.md +37 -0
- package/docs/TcxInstallationModel.md +17 -17
- package/docs/TcxInstallationsModel.md +4 -4
- package/docs/TcxKeySummaryDTO.md +3 -3
- package/docs/TcxKeysEntity.md +7 -7
- package/docs/TcxLicenceDetailsErrorModel.md +4 -4
- package/docs/TcxLicenceDetailsModel.md +11 -11
- package/docs/TcxMacsEntity.md +3 -3
- package/docs/TcxMultiTenantModel.md +7 -7
- package/docs/TcxMultiTenantUserModel.md +3 -3
- package/docs/TcxMultiTenantsModel.md +4 -4
- package/docs/TcxRemoteStorageModel.md +4 -4
- package/docs/TcxSbcDTO.md +7 -7
- package/docs/TcxSbcResponseDTO.md +2 -2
- package/docs/TcxSetupsModel.md +4 -4
- package/docs/TcxSummaryDTO.md +23 -0
- package/docs/TcxTemplateXmlEnum.md +2 -2
- package/docs/TcxUsersEntity.md +6 -6
- package/docs/TcxWizardConfigModel.md +2 -2
- package/docs/TcxWizardModel.md +2 -0
- package/docs/TechSupportCompanySummaryDTO.md +5 -5
- package/docs/ThumbnailDTO.md +25 -0
- package/docs/TicketSummaryModel.md +6 -6
- package/docs/TicketTimeDTO.md +9 -9
- package/docs/TicketsApi.md +11 -11
- package/docs/TokenResponseModel.md +3 -3
- package/docs/UpgradeOrderResponseModel.md +2 -2
- package/docs/UpgradeRequestModel.md +4 -4
- package/docs/UserEntity.md +10 -10
- package/docs/VideoRequestEntity.md +51 -0
- package/docs/WebhooksApi.md +1 -1
- package/docs/XeroLogEntity.md +10 -10
- package/getEnums.php +31 -31
- package/git_push.sh +14 -17
- package/index.ts +1 -1
- package/models/AgentEnum.ts +49 -0
- package/models/CategoryEnum.ts +109 -0
- package/models/ConnectionTypeEnum.ts +17 -7
- package/models/ReasonEnum.ts +19 -0
- package/models/ReportEnum.ts +11 -1
- package/models/ResolutionEnum.ts +19 -0
- package/models/RmaItemCreditTypeEnum.ts +14 -0
- package/models/RmaItemResolutionEnum.ts +29 -0
- package/models/RmaItemStatusEnum.ts +19 -0
- package/models/RmaStatusEnum.ts +34 -0
- package/openapitools.json +1 -1
- package/package.json +2 -2
package/docs/PromoCodesEntity.md
CHANGED
|
@@ -7,16 +7,16 @@ PromoCodesEntity
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
9
|
**id** | **number** | id | [optional] [default to undefined]
|
|
10
|
-
**code** | **string** | code | [
|
|
11
|
-
**description** | **string** | description | [
|
|
12
|
-
**
|
|
13
|
-
**
|
|
14
|
-
**
|
|
15
|
-
**
|
|
16
|
-
**
|
|
17
|
-
**
|
|
18
|
-
**
|
|
19
|
-
**
|
|
10
|
+
**code** | **string** | code | [default to undefined]
|
|
11
|
+
**description** | **string** | description | [default to undefined]
|
|
12
|
+
**startDate** | **string** | start | [optional] [default to undefined]
|
|
13
|
+
**endDate** | **string** | expiry | [optional] [default to undefined]
|
|
14
|
+
**customerLimit** | **number** | customerLimit | [default to undefined]
|
|
15
|
+
**globalLimit** | **number** | globalLimit | [default to undefined]
|
|
16
|
+
**orderRestrictions** | **Array<string>** | orderRestrictions | [default to undefined]
|
|
17
|
+
**includeDistribution** | **boolean** | includeDistribution | [default to undefined]
|
|
18
|
+
**distributionOnly** | **boolean** | distributionOnly | [default to undefined]
|
|
19
|
+
**nfr** | **boolean** | nfr | [default to undefined]
|
|
20
20
|
**note** | **string** | note | [optional] [default to undefined]
|
|
21
21
|
|
|
22
22
|
## Example
|
|
@@ -28,14 +28,14 @@ const instance: PromoCodesEntity = {
|
|
|
28
28
|
id,
|
|
29
29
|
code,
|
|
30
30
|
description,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
expiry,
|
|
31
|
+
startDate,
|
|
32
|
+
endDate,
|
|
34
33
|
customerLimit,
|
|
35
34
|
globalLimit,
|
|
36
35
|
orderRestrictions,
|
|
37
36
|
includeDistribution,
|
|
38
37
|
distributionOnly,
|
|
38
|
+
nfr,
|
|
39
39
|
note,
|
|
40
40
|
};
|
|
41
41
|
```
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# PromoItemModel
|
|
2
|
+
|
|
3
|
+
Promo Item
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **number** | id | [default to undefined]
|
|
10
|
+
**promoId** | **number** | promoId | [default to undefined]
|
|
11
|
+
**price** | **number** | price | [default to undefined]
|
|
12
|
+
**discount** | **number** | discount | [default to undefined]
|
|
13
|
+
**sku** | **string** | sku | [default to undefined]
|
|
14
|
+
**quantity** | **number** | quantity | [default to undefined]
|
|
15
|
+
**bulkQuantity** | **number** | bulkQuantity | [default to undefined]
|
|
16
|
+
**bulkAdd** | **number** | bulkAdd | [default to undefined]
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { PromoItemModel } from 'yellowgrid-api-ts';
|
|
22
|
+
|
|
23
|
+
const instance: PromoItemModel = {
|
|
24
|
+
id,
|
|
25
|
+
promoId,
|
|
26
|
+
price,
|
|
27
|
+
discount,
|
|
28
|
+
sku,
|
|
29
|
+
quantity,
|
|
30
|
+
bulkQuantity,
|
|
31
|
+
bulkAdd,
|
|
32
|
+
};
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/PromoItemsEntity.md
CHANGED
|
@@ -6,14 +6,14 @@ PromoItemsEntity
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**id** | **number** | id | [
|
|
10
|
-
**promoId** | **number** | promoId | [
|
|
11
|
-
**price** | **number** | price | [
|
|
12
|
-
**discount** | **number** | discount | [
|
|
13
|
-
**sku** | **string** | sku | [
|
|
14
|
-
**quantity** | **number** | quantity | [
|
|
15
|
-
**bulkQuantity** | **number** | bulkQuantity | [
|
|
16
|
-
**bulkAdd** | **number** | bulkAdd | [
|
|
9
|
+
**id** | **number** | id | [default to undefined]
|
|
10
|
+
**promoId** | **number** | promoId | [default to undefined]
|
|
11
|
+
**price** | **number** | price | [default to undefined]
|
|
12
|
+
**discount** | **number** | discount | [default to undefined]
|
|
13
|
+
**sku** | **string** | sku | [default to undefined]
|
|
14
|
+
**quantity** | **number** | quantity | [default to undefined]
|
|
15
|
+
**bulkQuantity** | **number** | bulkQuantity | [default to undefined]
|
|
16
|
+
**bulkAdd** | **number** | bulkAdd | [default to undefined]
|
|
17
17
|
|
|
18
18
|
## Example
|
|
19
19
|
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# PromoModel
|
|
2
|
+
|
|
3
|
+
Promotion
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **number** | id | [optional] [default to undefined]
|
|
10
|
+
**code** | **string** | code | [default to undefined]
|
|
11
|
+
**description** | **string** | description | [default to undefined]
|
|
12
|
+
**startDate** | **string** | start | [optional] [default to undefined]
|
|
13
|
+
**endDate** | **string** | expiry | [optional] [default to undefined]
|
|
14
|
+
**customerLimit** | **number** | customerLimit | [default to undefined]
|
|
15
|
+
**globalLimit** | **number** | globalLimit | [default to undefined]
|
|
16
|
+
**orderRestrictions** | **Array<string>** | orderRestrictions | [default to undefined]
|
|
17
|
+
**includeDistribution** | **boolean** | includeDistribution | [default to undefined]
|
|
18
|
+
**distributionOnly** | **boolean** | distributionOnly | [default to undefined]
|
|
19
|
+
**nfr** | **boolean** | nfr | [default to undefined]
|
|
20
|
+
**note** | **string** | note | [optional] [default to undefined]
|
|
21
|
+
**items** | [**Array<PromoItemModel>**](PromoItemModel.md) | Items | [optional] [default to undefined]
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import { PromoModel } from 'yellowgrid-api-ts';
|
|
27
|
+
|
|
28
|
+
const instance: PromoModel = {
|
|
29
|
+
id,
|
|
30
|
+
code,
|
|
31
|
+
description,
|
|
32
|
+
startDate,
|
|
33
|
+
endDate,
|
|
34
|
+
customerLimit,
|
|
35
|
+
globalLimit,
|
|
36
|
+
orderRestrictions,
|
|
37
|
+
includeDistribution,
|
|
38
|
+
distributionOnly,
|
|
39
|
+
nfr,
|
|
40
|
+
note,
|
|
41
|
+
items,
|
|
42
|
+
};
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# PromoSummariesModel
|
|
2
|
+
|
|
3
|
+
Promotions
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**results** | [**Array<PromoSummaryDTO>**](PromoSummaryDTO.md) | Results | [default to undefined]
|
|
10
|
+
**page** | **number** | Page | [default to undefined]
|
|
11
|
+
**perPage** | **number** | Per Page | [default to undefined]
|
|
12
|
+
**totalResults** | **number** | Total Results | [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { PromoSummariesModel } from 'yellowgrid-api-ts';
|
|
18
|
+
|
|
19
|
+
const instance: PromoSummariesModel = {
|
|
20
|
+
results,
|
|
21
|
+
page,
|
|
22
|
+
perPage,
|
|
23
|
+
totalResults,
|
|
24
|
+
};
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# PromoSummaryDTO
|
|
2
|
+
|
|
3
|
+
Promo Summary
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **number** | ID | [optional] [default to undefined]
|
|
10
|
+
**description** | **string** | Description | [default to undefined]
|
|
11
|
+
**code** | **string** | Promo Code | [default to undefined]
|
|
12
|
+
**startDate** | **string** | Start Date | [optional] [default to undefined]
|
|
13
|
+
**endDate** | **string** | End Date | [optional] [default to undefined]
|
|
14
|
+
**orders** | **number** | Orders | [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { PromoSummaryDTO } from 'yellowgrid-api-ts';
|
|
20
|
+
|
|
21
|
+
const instance: PromoSummaryDTO = {
|
|
22
|
+
id,
|
|
23
|
+
description,
|
|
24
|
+
code,
|
|
25
|
+
startDate,
|
|
26
|
+
endDate,
|
|
27
|
+
orders,
|
|
28
|
+
};
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
# PromotionsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.local.yellowgrid.co.uk*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getGetPromo**](#getgetpromo) | **GET** /marketing/promos/{id} | |
|
|
8
|
+
|[**getGetPromos**](#getgetpromos) | **GET** /marketing/promos | |
|
|
9
|
+
|[**postGetPromos**](#postgetpromos) | **POST** /marketing/promos | |
|
|
10
|
+
|[**putGetPromo**](#putgetpromo) | **PUT** /marketing/promos/{id} | |
|
|
11
|
+
|
|
12
|
+
# **getGetPromo**
|
|
13
|
+
> PromoModel getGetPromo()
|
|
14
|
+
|
|
15
|
+
Get a promotion
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import {
|
|
21
|
+
PromotionsApi,
|
|
22
|
+
Configuration
|
|
23
|
+
} from 'yellowgrid-api-ts';
|
|
24
|
+
|
|
25
|
+
const configuration = new Configuration();
|
|
26
|
+
const apiInstance = new PromotionsApi(configuration);
|
|
27
|
+
|
|
28
|
+
let id: number; //Promo ID (default to undefined)
|
|
29
|
+
|
|
30
|
+
const { status, data } = await apiInstance.getGetPromo(
|
|
31
|
+
id
|
|
32
|
+
);
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Parameters
|
|
36
|
+
|
|
37
|
+
|Name | Type | Description | Notes|
|
|
38
|
+
|------------- | ------------- | ------------- | -------------|
|
|
39
|
+
| **id** | [**number**] | Promo ID | defaults to undefined|
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Return type
|
|
43
|
+
|
|
44
|
+
**PromoModel**
|
|
45
|
+
|
|
46
|
+
### Authorization
|
|
47
|
+
|
|
48
|
+
No authorization required
|
|
49
|
+
|
|
50
|
+
### HTTP request headers
|
|
51
|
+
|
|
52
|
+
- **Content-Type**: Not defined
|
|
53
|
+
- **Accept**: application/json
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### HTTP response details
|
|
57
|
+
| Status code | Description | Response headers |
|
|
58
|
+
|-------------|-------------|------------------|
|
|
59
|
+
|**200** | Promotion | - |
|
|
60
|
+
|**400** | Bad Request | - |
|
|
61
|
+
|**401** | Unauthorised | - |
|
|
62
|
+
|**403** | Access Denied | - |
|
|
63
|
+
|
|
64
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
65
|
+
|
|
66
|
+
# **getGetPromos**
|
|
67
|
+
> PromoSummariesModel getGetPromos()
|
|
68
|
+
|
|
69
|
+
Get Promos
|
|
70
|
+
|
|
71
|
+
### Example
|
|
72
|
+
|
|
73
|
+
```typescript
|
|
74
|
+
import {
|
|
75
|
+
PromotionsApi,
|
|
76
|
+
Configuration
|
|
77
|
+
} from 'yellowgrid-api-ts';
|
|
78
|
+
|
|
79
|
+
const configuration = new Configuration();
|
|
80
|
+
const apiInstance = new PromotionsApi(configuration);
|
|
81
|
+
|
|
82
|
+
let pageSize: number; //Number Of Results (optional) (default to 20)
|
|
83
|
+
let page: number; //Page Number (optional) (default to 1)
|
|
84
|
+
let search: string; //Search (optional) (default to undefined)
|
|
85
|
+
let expired: boolean; //Expired (optional) (default to undefined)
|
|
86
|
+
|
|
87
|
+
const { status, data } = await apiInstance.getGetPromos(
|
|
88
|
+
pageSize,
|
|
89
|
+
page,
|
|
90
|
+
search,
|
|
91
|
+
expired
|
|
92
|
+
);
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Parameters
|
|
96
|
+
|
|
97
|
+
|Name | Type | Description | Notes|
|
|
98
|
+
|------------- | ------------- | ------------- | -------------|
|
|
99
|
+
| **pageSize** | [**number**] | Number Of Results | (optional) defaults to 20|
|
|
100
|
+
| **page** | [**number**] | Page Number | (optional) defaults to 1|
|
|
101
|
+
| **search** | [**string**] | Search | (optional) defaults to undefined|
|
|
102
|
+
| **expired** | [**boolean**] | Expired | (optional) defaults to undefined|
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
### Return type
|
|
106
|
+
|
|
107
|
+
**PromoSummariesModel**
|
|
108
|
+
|
|
109
|
+
### Authorization
|
|
110
|
+
|
|
111
|
+
No authorization required
|
|
112
|
+
|
|
113
|
+
### HTTP request headers
|
|
114
|
+
|
|
115
|
+
- **Content-Type**: Not defined
|
|
116
|
+
- **Accept**: application/json
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
### HTTP response details
|
|
120
|
+
| Status code | Description | Response headers |
|
|
121
|
+
|-------------|-------------|------------------|
|
|
122
|
+
|**200** | Promo Summaries | - |
|
|
123
|
+
|**400** | Bad Request | - |
|
|
124
|
+
|**401** | Unauthorised | - |
|
|
125
|
+
|**403** | Access Denied | - |
|
|
126
|
+
|
|
127
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
128
|
+
|
|
129
|
+
# **postGetPromos**
|
|
130
|
+
> PromoModel postGetPromos()
|
|
131
|
+
|
|
132
|
+
Create a promotion
|
|
133
|
+
|
|
134
|
+
### Example
|
|
135
|
+
|
|
136
|
+
```typescript
|
|
137
|
+
import {
|
|
138
|
+
PromotionsApi,
|
|
139
|
+
Configuration,
|
|
140
|
+
PromoModel
|
|
141
|
+
} from 'yellowgrid-api-ts';
|
|
142
|
+
|
|
143
|
+
const configuration = new Configuration();
|
|
144
|
+
const apiInstance = new PromotionsApi(configuration);
|
|
145
|
+
|
|
146
|
+
let promoModel: PromoModel; //Promotion (optional)
|
|
147
|
+
|
|
148
|
+
const { status, data } = await apiInstance.postGetPromos(
|
|
149
|
+
promoModel
|
|
150
|
+
);
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
### Parameters
|
|
154
|
+
|
|
155
|
+
|Name | Type | Description | Notes|
|
|
156
|
+
|------------- | ------------- | ------------- | -------------|
|
|
157
|
+
| **promoModel** | **PromoModel**| Promotion | |
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
### Return type
|
|
161
|
+
|
|
162
|
+
**PromoModel**
|
|
163
|
+
|
|
164
|
+
### Authorization
|
|
165
|
+
|
|
166
|
+
No authorization required
|
|
167
|
+
|
|
168
|
+
### HTTP request headers
|
|
169
|
+
|
|
170
|
+
- **Content-Type**: application/json
|
|
171
|
+
- **Accept**: application/json
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
### HTTP response details
|
|
175
|
+
| Status code | Description | Response headers |
|
|
176
|
+
|-------------|-------------|------------------|
|
|
177
|
+
|**200** | Promotion | - |
|
|
178
|
+
|**400** | Bad Request | - |
|
|
179
|
+
|**401** | Unauthorised | - |
|
|
180
|
+
|**403** | Access Denied | - |
|
|
181
|
+
|
|
182
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
183
|
+
|
|
184
|
+
# **putGetPromo**
|
|
185
|
+
> PromoModel putGetPromo()
|
|
186
|
+
|
|
187
|
+
Update a promotion
|
|
188
|
+
|
|
189
|
+
### Example
|
|
190
|
+
|
|
191
|
+
```typescript
|
|
192
|
+
import {
|
|
193
|
+
PromotionsApi,
|
|
194
|
+
Configuration,
|
|
195
|
+
PromoModel
|
|
196
|
+
} from 'yellowgrid-api-ts';
|
|
197
|
+
|
|
198
|
+
const configuration = new Configuration();
|
|
199
|
+
const apiInstance = new PromotionsApi(configuration);
|
|
200
|
+
|
|
201
|
+
let id: number; //Promo ID (default to undefined)
|
|
202
|
+
let promoModel: PromoModel; //Promotion (optional)
|
|
203
|
+
|
|
204
|
+
const { status, data } = await apiInstance.putGetPromo(
|
|
205
|
+
id,
|
|
206
|
+
promoModel
|
|
207
|
+
);
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
### Parameters
|
|
211
|
+
|
|
212
|
+
|Name | Type | Description | Notes|
|
|
213
|
+
|------------- | ------------- | ------------- | -------------|
|
|
214
|
+
| **promoModel** | **PromoModel**| Promotion | |
|
|
215
|
+
| **id** | [**number**] | Promo ID | defaults to undefined|
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
### Return type
|
|
219
|
+
|
|
220
|
+
**PromoModel**
|
|
221
|
+
|
|
222
|
+
### Authorization
|
|
223
|
+
|
|
224
|
+
No authorization required
|
|
225
|
+
|
|
226
|
+
### HTTP request headers
|
|
227
|
+
|
|
228
|
+
- **Content-Type**: application/json
|
|
229
|
+
- **Accept**: application/json
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
### HTTP response details
|
|
233
|
+
| Status code | Description | Response headers |
|
|
234
|
+
|-------------|-------------|------------------|
|
|
235
|
+
|**200** | Promotion | - |
|
|
236
|
+
|**400** | Bad Request | - |
|
|
237
|
+
|**401** | Unauthorised | - |
|
|
238
|
+
|**403** | Access Denied | - |
|
|
239
|
+
|
|
240
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
241
|
+
|
package/docs/ProspectDTO.md
CHANGED
|
@@ -6,16 +6,16 @@ Prospect
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**companyName** | **string** | Company Name | [
|
|
9
|
+
**companyName** | **string** | Company Name | [default to undefined]
|
|
10
10
|
**telephone** | **string** | Telephone | [optional] [default to undefined]
|
|
11
11
|
**lastOrderDate** | **string** | Last Order Date | [optional] [default to undefined]
|
|
12
12
|
**callbackDate** | **string** | Call Back Date | [optional] [default to undefined]
|
|
13
|
-
**xeroId** | **string** | Xero ID | [
|
|
14
|
-
**removed** | **boolean** | Removed From Prospects | [
|
|
15
|
-
**status** | **string** | Status | [
|
|
16
|
-
**orderCount** | **number** | Order Count | [
|
|
17
|
-
**tcxOrderCount** | **number** | 3CX Order Count | [
|
|
18
|
-
**videoCount** | **number** | Branded Video Count | [
|
|
13
|
+
**xeroId** | **string** | Xero ID | [default to undefined]
|
|
14
|
+
**removed** | **boolean** | Removed From Prospects | [default to undefined]
|
|
15
|
+
**status** | **string** | Status | [default to undefined]
|
|
16
|
+
**orderCount** | **number** | Order Count | [default to undefined]
|
|
17
|
+
**tcxOrderCount** | **number** | 3CX Order Count | [default to undefined]
|
|
18
|
+
**videoCount** | **number** | Branded Video Count | [default to undefined]
|
|
19
19
|
|
|
20
20
|
## Example
|
|
21
21
|
|
package/docs/ProspectEntity.md
CHANGED
|
@@ -6,17 +6,17 @@ ProspectEntity
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**id** | **number** | id | [
|
|
10
|
-
**status** | **number** | status | [
|
|
11
|
-
**customerId** | **number** | customerId | [
|
|
12
|
-
**companyName** | **string** | companyName | [
|
|
13
|
-
**contactName** | **string** | contactName | [
|
|
14
|
-
**telephone** | **string** | telephone | [
|
|
15
|
-
**email** | **string** | email | [
|
|
16
|
-
**reason** | **string** | reason | [
|
|
17
|
-
**lastOrderDate** | **string** | lastOrderDate | [
|
|
18
|
-
**followUpDate** | **string** | followUpDate | [
|
|
19
|
-
**notes** | **string** | notes | [
|
|
9
|
+
**id** | **number** | id | [default to undefined]
|
|
10
|
+
**status** | **number** | status | [default to undefined]
|
|
11
|
+
**customerId** | **number** | customerId | [default to undefined]
|
|
12
|
+
**companyName** | **string** | companyName | [default to undefined]
|
|
13
|
+
**contactName** | **string** | contactName | [default to undefined]
|
|
14
|
+
**telephone** | **string** | telephone | [default to undefined]
|
|
15
|
+
**email** | **string** | email | [default to undefined]
|
|
16
|
+
**reason** | **string** | reason | [default to undefined]
|
|
17
|
+
**lastOrderDate** | **string** | lastOrderDate | [default to undefined]
|
|
18
|
+
**followUpDate** | **string** | followUpDate | [default to undefined]
|
|
19
|
+
**notes** | **string** | notes | [default to undefined]
|
|
20
20
|
|
|
21
21
|
## Example
|
|
22
22
|
|
package/docs/ProspectsApi.md
CHANGED
package/docs/ProvisioningApi.md
CHANGED
|
@@ -6,9 +6,9 @@ Provisioning Group
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**groupName** | **string** | Provisioning Group Name | [
|
|
10
|
-
**provisioningUrl** | **string** | Provisioning URL (Static Provisioning Server) | [
|
|
11
|
-
**auth** | **string** | Additional Authentication Secret | [
|
|
9
|
+
**groupName** | **string** | Provisioning Group Name | [default to undefined]
|
|
10
|
+
**provisioningUrl** | **string** | Provisioning URL (Static Provisioning Server) | [default to undefined]
|
|
11
|
+
**auth** | **string** | Additional Authentication Secret | [default to undefined]
|
|
12
12
|
**id** | **number** | Provisioning Group ID | [optional] [default to undefined]
|
|
13
13
|
**customerId** | **number** | Owner ID | [optional] [default to undefined]
|
|
14
14
|
|
|
@@ -6,9 +6,9 @@ Provisioning Group Request
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**groupName** | **string** | Provisioning Group Name | [
|
|
10
|
-
**provisioningUrl** | **string** | Provisioning URL (Static Provisioning Server) | [
|
|
11
|
-
**auth** | **string** | Additional Authentication Secret | [
|
|
9
|
+
**groupName** | **string** | Provisioning Group Name | [default to undefined]
|
|
10
|
+
**provisioningUrl** | **string** | Provisioning URL (Static Provisioning Server) | [default to undefined]
|
|
11
|
+
**auth** | **string** | Additional Authentication Secret | [default to undefined]
|
|
12
12
|
|
|
13
13
|
## Example
|
|
14
14
|
|