@d19n/youfibre-odin-sdk 1.0.73 → 1.0.74
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/api-sdk-v2/AddressCrmDatasetApi.d.ts +44 -0
- package/dist/api-sdk-v2/AddressCrmDatasetApi.js +128 -0
- package/dist/api-sdk-v2/AfpInvoiceFileApi.d.ts +93 -0
- package/dist/api-sdk-v2/AfpInvoiceFileApi.js +177 -0
- package/dist/api-sdk-v2/BundleProductApi.d.ts +47 -0
- package/dist/api-sdk-v2/BundleProductApi.js +131 -0
- package/dist/api-sdk-v2/BusinessAccountApi.d.ts +47 -0
- package/dist/api-sdk-v2/BusinessAccountApi.js +131 -0
- package/dist/api-sdk-v2/CollectionWorkOrderApi.d.ts +92 -0
- package/dist/api-sdk-v2/CollectionWorkOrderApi.js +176 -0
- package/dist/api-sdk-v2/ContactCrmDatasetApi.d.ts +44 -0
- package/dist/api-sdk-v2/ContactCrmDatasetApi.js +128 -0
- package/dist/api-sdk-v2/CsvFileApi.d.ts +93 -0
- package/dist/api-sdk-v2/CsvFileApi.js +177 -0
- package/dist/api-sdk-v2/EmailFileApi.d.ts +93 -0
- package/dist/api-sdk-v2/EmailFileApi.js +177 -0
- package/dist/api-sdk-v2/EventActivityApi.d.ts +47 -0
- package/dist/api-sdk-v2/EventActivityApi.js +131 -0
- package/dist/api-sdk-v2/EventMessageApi.d.ts +39 -0
- package/dist/api-sdk-v2/EventMessageApi.js +123 -0
- package/dist/api-sdk-v2/FieldSalesSalesTerritoryApi.d.ts +40 -0
- package/dist/api-sdk-v2/FieldSalesSalesTerritoryApi.js +124 -0
- package/dist/api-sdk-v2/FileApi.d.ts +55 -55
- package/dist/api-sdk-v2/FileApi.js +56 -56
- package/dist/api-sdk-v2/FinanceServiceAppointmentConfigApi.d.ts +46 -0
- package/dist/api-sdk-v2/FinanceServiceAppointmentConfigApi.js +130 -0
- package/dist/api-sdk-v2/FinanceWorkOrderApi.d.ts +92 -0
- package/dist/api-sdk-v2/FinanceWorkOrderApi.js +176 -0
- package/dist/api-sdk-v2/GainingOneTouchSwitchApi.d.ts +47 -0
- package/dist/api-sdk-v2/GainingOneTouchSwitchApi.js +131 -0
- package/dist/api-sdk-v2/InboundSmsMessageApi.d.ts +43 -0
- package/dist/api-sdk-v2/InboundSmsMessageApi.js +127 -0
- package/dist/api-sdk-v2/InspectionServiceAppointmentConfigApi.d.ts +46 -0
- package/dist/api-sdk-v2/InspectionServiceAppointmentConfigApi.js +130 -0
- package/dist/api-sdk-v2/InspectionWorkOrderApi.d.ts +92 -0
- package/dist/api-sdk-v2/InspectionWorkOrderApi.js +176 -0
- package/dist/api-sdk-v2/InstallBusinessWorkOrderApi.d.ts +92 -0
- package/dist/api-sdk-v2/InstallBusinessWorkOrderApi.js +176 -0
- package/dist/api-sdk-v2/InstallServiceAppointmentConfigApi.d.ts +46 -0
- package/dist/api-sdk-v2/InstallServiceAppointmentConfigApi.js +130 -0
- package/dist/api-sdk-v2/InstallServiceServiceAppointmentConfigApi.d.ts +46 -0
- package/dist/api-sdk-v2/InstallServiceServiceAppointmentConfigApi.js +130 -0
- package/dist/api-sdk-v2/InstallServiceWorkOrderApi.d.ts +92 -0
- package/dist/api-sdk-v2/InstallServiceWorkOrderApi.js +176 -0
- package/dist/api-sdk-v2/InstallWorkOrderApi.d.ts +92 -0
- package/dist/api-sdk-v2/InstallWorkOrderApi.js +176 -0
- package/dist/api-sdk-v2/InternetProductApi.d.ts +47 -0
- package/dist/api-sdk-v2/InternetProductApi.js +131 -0
- package/dist/api-sdk-v2/InvoiceFileApi.d.ts +93 -0
- package/dist/api-sdk-v2/InvoiceFileApi.js +177 -0
- package/dist/api-sdk-v2/LaborProductApi.d.ts +47 -0
- package/dist/api-sdk-v2/LaborProductApi.js +131 -0
- package/dist/api-sdk-v2/LandlineProductApi.d.ts +47 -0
- package/dist/api-sdk-v2/LandlineProductApi.js +131 -0
- package/dist/api-sdk-v2/LeadApi.d.ts +4 -4
- package/dist/api-sdk-v2/LeadApi.js +4 -4
- package/dist/api-sdk-v2/LeadCrmDatasetApi.d.ts +44 -0
- package/dist/api-sdk-v2/LeadCrmDatasetApi.js +128 -0
- package/dist/api-sdk-v2/LosingOneTouchSwitchApi.d.ts +47 -0
- package/dist/api-sdk-v2/LosingOneTouchSwitchApi.js +131 -0
- package/dist/api-sdk-v2/MandateBillingRequestApi.d.ts +44 -0
- package/dist/api-sdk-v2/MandateBillingRequestApi.js +128 -0
- package/dist/api-sdk-v2/MeshProductApi.d.ts +47 -0
- package/dist/api-sdk-v2/MeshProductApi.js +131 -0
- package/dist/api-sdk-v2/MobileProductApi.d.ts +47 -0
- package/dist/api-sdk-v2/MobileProductApi.js +131 -0
- package/dist/api-sdk-v2/MultipleAccountApi.d.ts +47 -0
- package/dist/api-sdk-v2/MultipleAccountApi.js +131 -0
- package/dist/api-sdk-v2/NaProblemEvidenceFileApi.d.ts +93 -0
- package/dist/api-sdk-v2/NaProblemEvidenceFileApi.js +177 -0
- package/dist/api-sdk-v2/NaSolutionEvidenceFileApi.d.ts +93 -0
- package/dist/api-sdk-v2/NaSolutionEvidenceFileApi.js +177 -0
- package/dist/api-sdk-v2/NetworkAdjustmentServiceAppointmentConfigApi.d.ts +46 -0
- package/dist/api-sdk-v2/NetworkAdjustmentServiceAppointmentConfigApi.js +130 -0
- package/dist/api-sdk-v2/NetworkAdjustmentWorkOrderApi.d.ts +92 -0
- package/dist/api-sdk-v2/NetworkAdjustmentWorkOrderApi.js +176 -0
- package/dist/api-sdk-v2/NotificationActivityApi.d.ts +47 -0
- package/dist/api-sdk-v2/NotificationActivityApi.js +131 -0
- package/dist/api-sdk-v2/OltNetworkDeviceApi.d.ts +38 -0
- package/dist/api-sdk-v2/OltNetworkDeviceApi.js +122 -0
- package/dist/api-sdk-v2/OpenreachA55FileApi.d.ts +93 -0
- package/dist/api-sdk-v2/OpenreachA55FileApi.js +177 -0
- package/dist/api-sdk-v2/OtdrFileApi.d.ts +93 -0
- package/dist/api-sdk-v2/OtdrFileApi.js +177 -0
- package/dist/api-sdk-v2/OutageCaseApi.d.ts +55 -0
- package/dist/api-sdk-v2/OutageCaseApi.js +139 -0
- package/dist/api-sdk-v2/OutboundSmsMessageApi.d.ts +43 -0
- package/dist/api-sdk-v2/OutboundSmsMessageApi.js +127 -0
- package/dist/api-sdk-v2/OutcomeFormBlockageA55Api.d.ts +41 -0
- package/dist/api-sdk-v2/OutcomeFormBlockageA55Api.js +125 -0
- package/dist/api-sdk-v2/OutcomeFormBlockageReportA55Api.d.ts +40 -0
- package/dist/api-sdk-v2/OutcomeFormBlockageReportA55Api.js +124 -0
- package/dist/api-sdk-v2/OutcomeFormInternalInstallAuditApi.d.ts +40 -0
- package/dist/api-sdk-v2/OutcomeFormInternalInstallAuditApi.js +124 -0
- package/dist/api-sdk-v2/OutcomeFormNetomniaFtth1StageInstallAuditApi.d.ts +40 -0
- package/dist/api-sdk-v2/OutcomeFormNetomniaFtth1StageInstallAuditApi.js +124 -0
- package/dist/api-sdk-v2/OutcomeFormNetomniaFtth2StageInstallAuditApi.d.ts +40 -0
- package/dist/api-sdk-v2/OutcomeFormNetomniaFtth2StageInstallAuditApi.js +124 -0
- package/dist/api-sdk-v2/OutcomeFormNetomniaFtthServiceVisitSheetApi.d.ts +40 -0
- package/dist/api-sdk-v2/OutcomeFormNetomniaFtthServiceVisitSheetApi.js +124 -0
- package/dist/api-sdk-v2/OutcomeFormNetomniaInstallVerificationApi.d.ts +40 -0
- package/dist/api-sdk-v2/OutcomeFormNetomniaInstallVerificationApi.js +124 -0
- package/dist/api-sdk-v2/OutcomeFormNoinstall3AuditOfInstallationSheetApi.d.ts +38 -0
- package/dist/api-sdk-v2/OutcomeFormNoinstall3AuditOfInstallationSheetApi.js +122 -0
- package/dist/api-sdk-v2/OutcomeFormOhAuditOfInstallationApi.d.ts +40 -0
- package/dist/api-sdk-v2/OutcomeFormOhAuditOfInstallationApi.js +124 -0
- package/dist/api-sdk-v2/OutcomeFormOhExternalAuditApi.d.ts +40 -0
- package/dist/api-sdk-v2/OutcomeFormOhExternalAuditApi.js +124 -0
- package/dist/api-sdk-v2/OutcomeFormOhInProgressAuditApi.d.ts +40 -0
- package/dist/api-sdk-v2/OutcomeFormOhInProgressAuditApi.js +124 -0
- package/dist/api-sdk-v2/OutcomeFormOhInstallationAuditApi.d.ts +40 -0
- package/dist/api-sdk-v2/OutcomeFormOhInstallationAuditApi.js +124 -0
- package/dist/api-sdk-v2/OutcomeFormOhRetroAuditApi.d.ts +40 -0
- package/dist/api-sdk-v2/OutcomeFormOhRetroAuditApi.js +124 -0
- package/dist/api-sdk-v2/OutcomeFormOverlayRealA55Api.d.ts +40 -0
- package/dist/api-sdk-v2/OutcomeFormOverlayRealA55Api.js +124 -0
- package/dist/api-sdk-v2/OutcomeFormRemediationOutcomeFormApi.d.ts +40 -0
- package/dist/api-sdk-v2/OutcomeFormRemediationOutcomeFormApi.js +124 -0
- package/dist/api-sdk-v2/OutcomeFormRemediationRequiredReasonApi.d.ts +41 -0
- package/dist/api-sdk-v2/OutcomeFormRemediationRequiredReasonApi.js +125 -0
- package/dist/api-sdk-v2/OutcomeFormServiceVisitAuditApi.d.ts +41 -0
- package/dist/api-sdk-v2/OutcomeFormServiceVisitAuditApi.js +125 -0
- package/dist/api-sdk-v2/OutcomeFormSweeperMaintenanceAuditApi.d.ts +40 -0
- package/dist/api-sdk-v2/OutcomeFormSweeperMaintenanceAuditApi.js +124 -0
- package/dist/api-sdk-v2/OutcomeFormUgAuditOfInstallationApi.d.ts +40 -0
- package/dist/api-sdk-v2/OutcomeFormUgAuditOfInstallationApi.js +124 -0
- package/dist/api-sdk-v2/OutcomeFormUgExternalAuditApi.d.ts +40 -0
- package/dist/api-sdk-v2/OutcomeFormUgExternalAuditApi.js +124 -0
- package/dist/api-sdk-v2/OutcomeFormUgInProgressAuditApi.d.ts +40 -0
- package/dist/api-sdk-v2/OutcomeFormUgInProgressAuditApi.js +124 -0
- package/dist/api-sdk-v2/OutcomeFormUgInstallationAuditApi.d.ts +40 -0
- package/dist/api-sdk-v2/OutcomeFormUgInstallationAuditApi.js +124 -0
- package/dist/api-sdk-v2/OutcomeFormUgRetroAuditApi.d.ts +40 -0
- package/dist/api-sdk-v2/OutcomeFormUgRetroAuditApi.js +124 -0
- package/dist/api-sdk-v2/OutcomeFormWayleaveAuditApi.d.ts +40 -0
- package/dist/api-sdk-v2/OutcomeFormWayleaveAuditApi.js +124 -0
- package/dist/api-sdk-v2/OutcomeFormYfEquipmentCollectionApi.d.ts +38 -0
- package/dist/api-sdk-v2/OutcomeFormYfEquipmentCollectionApi.js +122 -0
- package/dist/api-sdk-v2/OutcomeFormYfFieldServiceVisitApi.d.ts +40 -0
- package/dist/api-sdk-v2/OutcomeFormYfFieldServiceVisitApi.js +124 -0
- package/dist/api-sdk-v2/OutcomeFormYfStockCountApi.d.ts +40 -0
- package/dist/api-sdk-v2/OutcomeFormYfStockCountApi.js +124 -0
- package/dist/api-sdk-v2/OutcomeFormYfToolAuditApi.d.ts +42 -0
- package/dist/api-sdk-v2/OutcomeFormYfToolAuditApi.js +126 -0
- package/dist/api-sdk-v2/OutcomeFormYfVanAuditApi.d.ts +42 -0
- package/dist/api-sdk-v2/OutcomeFormYfVanAuditApi.js +126 -0
- package/dist/api-sdk-v2/PaymentBillingRequestApi.d.ts +44 -0
- package/dist/api-sdk-v2/PaymentBillingRequestApi.js +128 -0
- package/dist/api-sdk-v2/PlanningServiceAppointmentConfigApi.d.ts +46 -0
- package/dist/api-sdk-v2/PlanningServiceAppointmentConfigApi.js +130 -0
- package/dist/api-sdk-v2/PlanningWorkOrderApi.d.ts +92 -0
- package/dist/api-sdk-v2/PlanningWorkOrderApi.js +176 -0
- package/dist/api-sdk-v2/PrePullServiceAppointmentConfigApi.d.ts +46 -0
- package/dist/api-sdk-v2/PrePullServiceAppointmentConfigApi.js +130 -0
- package/dist/api-sdk-v2/PrePullWorkOrderApi.d.ts +92 -0
- package/dist/api-sdk-v2/PrePullWorkOrderApi.js +176 -0
- package/dist/api-sdk-v2/PrimaryAccountApi.d.ts +47 -0
- package/dist/api-sdk-v2/PrimaryAccountApi.js +131 -0
- package/dist/api-sdk-v2/RecontractOfferApi.d.ts +42 -0
- package/dist/api-sdk-v2/RecontractOfferApi.js +126 -0
- package/dist/api-sdk-v2/ReleaseNoteKnowledgeArticleApi.d.ts +40 -0
- package/dist/api-sdk-v2/ReleaseNoteKnowledgeArticleApi.js +124 -0
- package/dist/api-sdk-v2/RemediationServiceAppointmentConfigApi.d.ts +46 -0
- package/dist/api-sdk-v2/RemediationServiceAppointmentConfigApi.js +130 -0
- package/dist/api-sdk-v2/RemediationWorkOrderApi.d.ts +92 -0
- package/dist/api-sdk-v2/RemediationWorkOrderApi.js +176 -0
- package/dist/api-sdk-v2/ResellerAccountApi.d.ts +47 -0
- package/dist/api-sdk-v2/ResellerAccountApi.js +131 -0
- package/dist/api-sdk-v2/SaCancelChangeReasonApi.d.ts +42 -0
- package/dist/api-sdk-v2/SaCancelChangeReasonApi.js +126 -0
- package/dist/api-sdk-v2/SaDelayChangeReasonApi.d.ts +42 -0
- package/dist/api-sdk-v2/SaDelayChangeReasonApi.js +126 -0
- package/dist/api-sdk-v2/SaInformChangeReasonApi.d.ts +42 -0
- package/dist/api-sdk-v2/SaInformChangeReasonApi.js +126 -0
- package/dist/api-sdk-v2/SaRescheduleChangeReasonApi.d.ts +42 -0
- package/dist/api-sdk-v2/SaRescheduleChangeReasonApi.js +126 -0
- package/dist/api-sdk-v2/ServiceServiceAppointmentConfigApi.d.ts +46 -0
- package/dist/api-sdk-v2/ServiceServiceAppointmentConfigApi.js +130 -0
- package/dist/api-sdk-v2/ServiceWorkOrderApi.d.ts +92 -0
- package/dist/api-sdk-v2/ServiceWorkOrderApi.js +176 -0
- package/dist/api-sdk-v2/StandardOfferApi.d.ts +42 -0
- package/dist/api-sdk-v2/StandardOfferApi.js +126 -0
- package/dist/api-sdk-v2/SupportEmailApi.d.ts +42 -0
- package/dist/api-sdk-v2/SupportEmailApi.js +126 -0
- package/dist/api-sdk-v2/TaskActivityApi.d.ts +47 -0
- package/dist/api-sdk-v2/TaskActivityApi.js +131 -0
- package/dist/api-sdk-v2/TelesalesSalesTerritoryApi.d.ts +40 -0
- package/dist/api-sdk-v2/TelesalesSalesTerritoryApi.js +124 -0
- package/dist/api-sdk-v2/UserGuideKnowledgeArticleApi.d.ts +40 -0
- package/dist/api-sdk-v2/UserGuideKnowledgeArticleApi.js +124 -0
- package/dist/api-sdk-v2/WayleaveServiceAppointmentConfigApi.d.ts +46 -0
- package/dist/api-sdk-v2/WayleaveServiceAppointmentConfigApi.js +130 -0
- package/dist/api-sdk-v2/WayleaveWorkOrderApi.d.ts +92 -0
- package/dist/api-sdk-v2/WayleaveWorkOrderApi.js +176 -0
- package/dist/api-sdk-v2/WorkOrderApi.d.ts +11 -11
- package/dist/api-sdk-v2/WorkOrderApi.js +11 -11
- package/dist/db-sdk-v2/WorkOrderDb.d.ts +11 -11
- package/dist/db-sdk-v2/WorkOrderDb.js +11 -11
- package/dist/entities-v2/BillingAdjustment.d.ts +12 -12
- package/dist/entities-v2/BillingAdjustment.js +10 -10
- package/dist/entities-v2/CollectionWorkOrder.d.ts +2 -2
- package/dist/entities-v2/Contact.d.ts +77 -77
- package/dist/entities-v2/Contact.js +61 -61
- package/dist/entities-v2/CreditNote.d.ts +4 -4
- package/dist/entities-v2/CreditNote.js +2 -2
- package/dist/entities-v2/FinanceWorkOrder.d.ts +2 -2
- package/dist/entities-v2/InspectionWorkOrder.d.ts +2 -2
- package/dist/entities-v2/InstallBusinessWorkOrder.d.ts +2 -2
- package/dist/entities-v2/InstallServiceWorkOrder.d.ts +2 -2
- package/dist/entities-v2/InstallWorkOrder.d.ts +2 -2
- package/dist/entities-v2/Lead.d.ts +53 -52
- package/dist/entities-v2/Lead.js +30 -30
- package/dist/entities-v2/NetworkAdjustmentWorkOrder.d.ts +2 -2
- package/dist/entities-v2/OutcomeFormBlockageA55.d.ts +36 -36
- package/dist/entities-v2/OutcomeFormBlockageA55.js +36 -36
- package/dist/entities-v2/OutcomeFormRemediationRequiredReason.d.ts +24 -3
- package/dist/entities-v2/OutcomeFormRemediationRequiredReason.js +24 -3
- package/dist/entities-v2/PlanningWorkOrder.d.ts +2 -2
- package/dist/entities-v2/PrePullWorkOrder.d.ts +2 -2
- package/dist/entities-v2/RemediationRequiredReason.d.ts +24 -3
- package/dist/entities-v2/RemediationRequiredReason.js +24 -3
- package/dist/entities-v2/RemediationWorkOrder.d.ts +2 -2
- package/dist/entities-v2/ServiceWorkOrder.d.ts +2 -2
- package/dist/entities-v2/WayleaveWorkOrder.d.ts +4 -4
- package/dist/entities-v2/WorkOrder.d.ts +3 -3
- package/dist/types-v1/Types.d.ts +1 -1
- package/dist/types-v1/Types.js +1 -1
- package/package.json +2 -2
- package/src/api-sdk-v2/AddressCrmDatasetApi.ts +171 -0
- package/src/api-sdk-v2/AfpInvoiceFileApi.ts +465 -0
- package/src/api-sdk-v2/BundleProductApi.ts +189 -0
- package/src/api-sdk-v2/BusinessAccountApi.ts +189 -0
- package/src/api-sdk-v2/CollectionWorkOrderApi.ts +459 -0
- package/src/api-sdk-v2/ContactCrmDatasetApi.ts +171 -0
- package/src/api-sdk-v2/CsvFileApi.ts +465 -0
- package/src/api-sdk-v2/EmailFileApi.ts +465 -0
- package/src/api-sdk-v2/EventActivityApi.ts +189 -0
- package/src/api-sdk-v2/EventMessageApi.ts +141 -0
- package/src/api-sdk-v2/FieldSalesSalesTerritoryApi.ts +147 -0
- package/src/api-sdk-v2/FileApi.ts +173 -173
- package/src/api-sdk-v2/FinanceServiceAppointmentConfigApi.ts +183 -0
- package/src/api-sdk-v2/FinanceWorkOrderApi.ts +459 -0
- package/src/api-sdk-v2/GainingOneTouchSwitchApi.ts +189 -0
- package/src/api-sdk-v2/InboundSmsMessageApi.ts +165 -0
- package/src/api-sdk-v2/InspectionServiceAppointmentConfigApi.ts +183 -0
- package/src/api-sdk-v2/InspectionWorkOrderApi.ts +459 -0
- package/src/api-sdk-v2/InstallBusinessWorkOrderApi.ts +459 -0
- package/src/api-sdk-v2/InstallServiceAppointmentConfigApi.ts +183 -0
- package/src/api-sdk-v2/InstallServiceServiceAppointmentConfigApi.ts +183 -0
- package/src/api-sdk-v2/InstallServiceWorkOrderApi.ts +459 -0
- package/src/api-sdk-v2/InstallWorkOrderApi.ts +459 -0
- package/src/api-sdk-v2/InternetProductApi.ts +189 -0
- package/src/api-sdk-v2/InvoiceFileApi.ts +465 -0
- package/src/api-sdk-v2/LaborProductApi.ts +189 -0
- package/src/api-sdk-v2/LandlineProductApi.ts +189 -0
- package/src/api-sdk-v2/LeadApi.ts +18 -18
- package/src/api-sdk-v2/LeadCrmDatasetApi.ts +171 -0
- package/src/api-sdk-v2/LosingOneTouchSwitchApi.ts +189 -0
- package/src/api-sdk-v2/MandateBillingRequestApi.ts +171 -0
- package/src/api-sdk-v2/MeshProductApi.ts +189 -0
- package/src/api-sdk-v2/MobileProductApi.ts +189 -0
- package/src/api-sdk-v2/MultipleAccountApi.ts +189 -0
- package/src/api-sdk-v2/NaProblemEvidenceFileApi.ts +465 -0
- package/src/api-sdk-v2/NaSolutionEvidenceFileApi.ts +465 -0
- package/src/api-sdk-v2/NetworkAdjustmentServiceAppointmentConfigApi.ts +183 -0
- package/src/api-sdk-v2/NetworkAdjustmentWorkOrderApi.ts +459 -0
- package/src/api-sdk-v2/NotificationActivityApi.ts +189 -0
- package/src/api-sdk-v2/OltNetworkDeviceApi.ts +135 -0
- package/src/api-sdk-v2/OpenreachA55FileApi.ts +465 -0
- package/src/api-sdk-v2/OtdrFileApi.ts +465 -0
- package/src/api-sdk-v2/OutageCaseApi.ts +237 -0
- package/src/api-sdk-v2/OutboundSmsMessageApi.ts +165 -0
- package/src/api-sdk-v2/OutcomeFormBlockageA55Api.ts +153 -0
- package/src/api-sdk-v2/OutcomeFormBlockageReportA55Api.ts +147 -0
- package/src/api-sdk-v2/OutcomeFormInternalInstallAuditApi.ts +147 -0
- package/src/api-sdk-v2/OutcomeFormNetomniaFtth1StageInstallAuditApi.ts +147 -0
- package/src/api-sdk-v2/OutcomeFormNetomniaFtth2StageInstallAuditApi.ts +147 -0
- package/src/api-sdk-v2/OutcomeFormNetomniaFtthServiceVisitSheetApi.ts +147 -0
- package/src/api-sdk-v2/OutcomeFormNetomniaInstallVerificationApi.ts +147 -0
- package/src/api-sdk-v2/OutcomeFormNoinstall3AuditOfInstallationSheetApi.ts +135 -0
- package/src/api-sdk-v2/OutcomeFormOhAuditOfInstallationApi.ts +147 -0
- package/src/api-sdk-v2/OutcomeFormOhExternalAuditApi.ts +147 -0
- package/src/api-sdk-v2/OutcomeFormOhInProgressAuditApi.ts +147 -0
- package/src/api-sdk-v2/OutcomeFormOhInstallationAuditApi.ts +147 -0
- package/src/api-sdk-v2/OutcomeFormOhRetroAuditApi.ts +147 -0
- package/src/api-sdk-v2/OutcomeFormOverlayRealA55Api.ts +147 -0
- package/src/api-sdk-v2/OutcomeFormRemediationOutcomeFormApi.ts +147 -0
- package/src/api-sdk-v2/OutcomeFormRemediationRequiredReasonApi.ts +153 -0
- package/src/api-sdk-v2/OutcomeFormServiceVisitAuditApi.ts +153 -0
- package/src/api-sdk-v2/OutcomeFormSweeperMaintenanceAuditApi.ts +147 -0
- package/src/api-sdk-v2/OutcomeFormUgAuditOfInstallationApi.ts +147 -0
- package/src/api-sdk-v2/OutcomeFormUgExternalAuditApi.ts +147 -0
- package/src/api-sdk-v2/OutcomeFormUgInProgressAuditApi.ts +147 -0
- package/src/api-sdk-v2/OutcomeFormUgInstallationAuditApi.ts +147 -0
- package/src/api-sdk-v2/OutcomeFormUgRetroAuditApi.ts +147 -0
- package/src/api-sdk-v2/OutcomeFormWayleaveAuditApi.ts +147 -0
- package/src/api-sdk-v2/OutcomeFormYfEquipmentCollectionApi.ts +135 -0
- package/src/api-sdk-v2/OutcomeFormYfFieldServiceVisitApi.ts +147 -0
- package/src/api-sdk-v2/OutcomeFormYfStockCountApi.ts +147 -0
- package/src/api-sdk-v2/OutcomeFormYfToolAuditApi.ts +159 -0
- package/src/api-sdk-v2/OutcomeFormYfVanAuditApi.ts +159 -0
- package/src/api-sdk-v2/PaymentBillingRequestApi.ts +171 -0
- package/src/api-sdk-v2/PlanningServiceAppointmentConfigApi.ts +183 -0
- package/src/api-sdk-v2/PlanningWorkOrderApi.ts +459 -0
- package/src/api-sdk-v2/PrePullServiceAppointmentConfigApi.ts +183 -0
- package/src/api-sdk-v2/PrePullWorkOrderApi.ts +459 -0
- package/src/api-sdk-v2/PrimaryAccountApi.ts +189 -0
- package/src/api-sdk-v2/RecontractOfferApi.ts +159 -0
- package/src/api-sdk-v2/ReleaseNoteKnowledgeArticleApi.ts +147 -0
- package/src/api-sdk-v2/RemediationServiceAppointmentConfigApi.ts +183 -0
- package/src/api-sdk-v2/RemediationWorkOrderApi.ts +459 -0
- package/src/api-sdk-v2/ResellerAccountApi.ts +189 -0
- package/src/api-sdk-v2/SaCancelChangeReasonApi.ts +159 -0
- package/src/api-sdk-v2/SaDelayChangeReasonApi.ts +159 -0
- package/src/api-sdk-v2/SaInformChangeReasonApi.ts +159 -0
- package/src/api-sdk-v2/SaRescheduleChangeReasonApi.ts +159 -0
- package/src/api-sdk-v2/ServiceServiceAppointmentConfigApi.ts +183 -0
- package/src/api-sdk-v2/ServiceWorkOrderApi.ts +459 -0
- package/src/api-sdk-v2/StandardOfferApi.ts +159 -0
- package/src/api-sdk-v2/SupportEmailApi.ts +159 -0
- package/src/api-sdk-v2/TaskActivityApi.ts +189 -0
- package/src/api-sdk-v2/TelesalesSalesTerritoryApi.ts +147 -0
- package/src/api-sdk-v2/UserGuideKnowledgeArticleApi.ts +147 -0
- package/src/api-sdk-v2/WayleaveServiceAppointmentConfigApi.ts +183 -0
- package/src/api-sdk-v2/WayleaveWorkOrderApi.ts +459 -0
- package/src/api-sdk-v2/WorkOrderApi.ts +60 -60
- package/src/db-sdk-v2/WorkOrderDb.ts +77 -77
- package/src/entities-v2/BillingAdjustment.ts +16 -16
- package/src/entities-v2/CollectionWorkOrder.ts +2 -2
- package/src/entities-v2/Contact.ts +100 -100
- package/src/entities-v2/CreditNote.ts +6 -6
- package/src/entities-v2/FinanceWorkOrder.ts +2 -2
- package/src/entities-v2/InspectionWorkOrder.ts +2 -2
- package/src/entities-v2/InstallBusinessWorkOrder.ts +2 -2
- package/src/entities-v2/InstallServiceWorkOrder.ts +2 -2
- package/src/entities-v2/InstallWorkOrder.ts +2 -2
- package/src/entities-v2/Lead.ts +75 -74
- package/src/entities-v2/NetworkAdjustmentWorkOrder.ts +2 -2
- package/src/entities-v2/OutcomeFormBlockageA55.ts +45 -45
- package/src/entities-v2/OutcomeFormRemediationRequiredReason.ts +27 -4
- package/src/entities-v2/PlanningWorkOrder.ts +2 -2
- package/src/entities-v2/PrePullWorkOrder.ts +2 -2
- package/src/entities-v2/RemediationRequiredReason.ts +27 -4
- package/src/entities-v2/RemediationWorkOrder.ts +2 -2
- package/src/entities-v2/ServiceWorkOrder.ts +2 -2
- package/src/entities-v2/WayleaveWorkOrder.ts +4 -4
- package/src/entities-v2/WorkOrder.ts +3 -3
- package/src/generators/runner.ts +2 -0
- package/src/types-v1/Types.ts +1 -1
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { OauthParams } from '@d19n/odin-sdk-generator/dist/api.interfaces';
|
|
2
|
+
import { ApiProvider } from '@d19n/odin-sdk-generator/dist/api.provider';
|
|
3
|
+
import { OdinSearchV2 } from '@d19n/odin-types/dist/interfaces/v2.db.interfaces';
|
|
4
|
+
import { OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
5
|
+
import { ApiRecordLinkManager } from '@d19n/odin-sdk-generator/dist/api.record.link.manager';
|
|
6
|
+
import { AddressCrmDatasetProperties } from '../entities-v2/AddressCrmDataset';
|
|
7
|
+
export declare class AddressCrmDatasetApi extends ApiProvider {
|
|
8
|
+
protected readonly authToken?: string;
|
|
9
|
+
private readonly moduleName;
|
|
10
|
+
private readonly entityName;
|
|
11
|
+
private readonly entityType;
|
|
12
|
+
private sourceRecord;
|
|
13
|
+
readonly lead: ApiRecordLinkManager;
|
|
14
|
+
readonly address: ApiRecordLinkManager;
|
|
15
|
+
readonly note: ApiRecordLinkManager;
|
|
16
|
+
readonly user: ApiRecordLinkManager;
|
|
17
|
+
readonly salesterritory: ApiRecordLinkManager;
|
|
18
|
+
readonly team: ApiRecordLinkManager;
|
|
19
|
+
readonly exchange: ApiRecordLinkManager;
|
|
20
|
+
constructor(authParams?: OauthParams, authToken?: string);
|
|
21
|
+
setRecord(sourceRecord: any): void;
|
|
22
|
+
schema(): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinSchema>;
|
|
23
|
+
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/api.interfaces").OdinSearchResponse<any>>;
|
|
24
|
+
searchAndPaginate(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/api.interfaces").OdinSearchResponse<any>>;
|
|
25
|
+
reIndex(body: {
|
|
26
|
+
id: string;
|
|
27
|
+
schemaId: string;
|
|
28
|
+
}[]): Promise<any>;
|
|
29
|
+
get(crmDatasetId: string): Promise<any>;
|
|
30
|
+
getMany(crmDatasetIds: string[]): Promise<any[]>;
|
|
31
|
+
upsert(upsertDto: OdinRecordCreateDto<AddressCrmDatasetProperties>): Promise<any>;
|
|
32
|
+
upsertMany(upsertDtos: OdinRecordCreateDto<AddressCrmDatasetProperties>[]): Promise<any[]>;
|
|
33
|
+
update(updateDto: OdinRecordUpdateDto<AddressCrmDatasetProperties>): Promise<any>;
|
|
34
|
+
updateMany(updateDtos: OdinRecordUpdateDto<AddressCrmDatasetProperties>[]): Promise<any[]>;
|
|
35
|
+
delete(crmDatasetId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinDeleteResponse>;
|
|
36
|
+
deleteMany(crmDatasetIds: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinDeleteResponse[]>;
|
|
37
|
+
restore(crmDatasetIds: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinRestoreResponse[]>;
|
|
38
|
+
getVersions(): Promise<{
|
|
39
|
+
[key: string]: Record<string, any>;
|
|
40
|
+
}>;
|
|
41
|
+
getRevisionTimeline(): Promise<{
|
|
42
|
+
[key: string]: Record<string, any>[];
|
|
43
|
+
}>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AddressCrmDatasetApi = void 0;
|
|
13
|
+
const api_provider_1 = require("@d19n/odin-sdk-generator/dist/api.provider");
|
|
14
|
+
const api_record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/api.record.link.manager");
|
|
15
|
+
class AddressCrmDatasetApi extends api_provider_1.ApiProvider {
|
|
16
|
+
constructor(authParams, authToken) {
|
|
17
|
+
super(authParams, authToken);
|
|
18
|
+
this.authToken = authToken;
|
|
19
|
+
this.moduleName = 'CrmModule';
|
|
20
|
+
this.entityName = 'CrmDataset';
|
|
21
|
+
this.entityType = 'ADDRESS';
|
|
22
|
+
this.lead = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:CrmDataset', 'CrmModule:Lead', 'CrmDataset__Lead');
|
|
23
|
+
this.address = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:CrmDataset', 'CrmModule:Address', 'CrmDataset__Address');
|
|
24
|
+
this.note = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:CrmDataset', 'SupportModule:Note', 'CrmDataset__Note');
|
|
25
|
+
this.user = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:CrmDataset', 'IdentityModule:User', 'CrmDataset__User');
|
|
26
|
+
this.salesterritory = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:CrmDataset', 'CrmModule:SalesTerritory', 'CrmDataset__SalesTerritory');
|
|
27
|
+
this.team = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:CrmDataset', 'IdentityModule:Team', 'CrmDataset_Team');
|
|
28
|
+
this.exchange = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:CrmDataset', 'ProjectModule:Exchange', 'Exchange__CrmDataset');
|
|
29
|
+
}
|
|
30
|
+
setRecord(sourceRecord) {
|
|
31
|
+
this.sourceRecord = sourceRecord;
|
|
32
|
+
}
|
|
33
|
+
schema() {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
return yield this.getSchema(this.moduleName, this.entityName);
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
// Use this function when you want to search and handle all pagination on your own
|
|
39
|
+
search(params) {
|
|
40
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
return yield this._searchRecords(this.moduleName, this.entityName, params);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
// Use this function when you want paginating through the results to be handled
|
|
45
|
+
searchAndPaginate(params) {
|
|
46
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
return yield this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params);
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
// Use this function to re-index records in elastic search
|
|
51
|
+
reIndex(body) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
return yield this._reIndexRecords(body);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
// Use this function when you want to return a single record
|
|
57
|
+
get(crmDatasetId) {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
const res = yield this._getByPrimaryKey(this.moduleName, this.entityName, crmDatasetId);
|
|
60
|
+
this.setRecord(res);
|
|
61
|
+
return res;
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
// Use this function when you want to return many records by primaryKeys
|
|
65
|
+
getMany(crmDatasetIds) {
|
|
66
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
+
return yield this._getManyByPrimaryKey(this.moduleName, this.entityName, crmDatasetIds);
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
// Use this function when you want to upsert one record
|
|
71
|
+
upsert(upsertDto) {
|
|
72
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
+
const res = yield this._upsert(this.moduleName, this.entityName, [upsertDto]);
|
|
74
|
+
return res[0];
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
// Use this function when you want to upsert many records
|
|
78
|
+
upsertMany(upsertDtos) {
|
|
79
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
80
|
+
return yield this._upsert(this.moduleName, this.entityName, upsertDtos);
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
// Use this function when you want to update one record
|
|
84
|
+
update(updateDto) {
|
|
85
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
86
|
+
const res = yield this._update(this.moduleName, this.entityName, [updateDto]);
|
|
87
|
+
return res[0];
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
// Use this function when you want to update many records
|
|
91
|
+
updateMany(updateDtos) {
|
|
92
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
93
|
+
return yield this._update(this.moduleName, this.entityName, updateDtos);
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
// Use this function when you want to delete one record
|
|
97
|
+
delete(crmDatasetId) {
|
|
98
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
99
|
+
const res = yield this._delete(this.moduleName, this.entityName, [crmDatasetId]);
|
|
100
|
+
return res[0];
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
// Use this function when you want to delete many records
|
|
104
|
+
deleteMany(crmDatasetIds) {
|
|
105
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
106
|
+
return yield this._delete(this.moduleName, this.entityName, crmDatasetIds);
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
// Use this function when you want to restore one or many records
|
|
110
|
+
restore(crmDatasetIds) {
|
|
111
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
112
|
+
return yield this._restore(this.moduleName, this.entityName, crmDatasetIds);
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
// Use this function when you want to return the versions for a single record
|
|
116
|
+
getVersions() {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
return yield this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
// Use this function when you want to return the change history for a single record
|
|
122
|
+
getRevisionTimeline() {
|
|
123
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
124
|
+
return yield this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
exports.AddressCrmDatasetApi = AddressCrmDatasetApi;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { OauthParams } from '@d19n/odin-sdk-generator/dist/api.interfaces';
|
|
2
|
+
import { ApiProvider } from '@d19n/odin-sdk-generator/dist/api.provider';
|
|
3
|
+
import { OdinSearchV2 } from '@d19n/odin-types/dist/interfaces/v2.db.interfaces';
|
|
4
|
+
import { OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
5
|
+
import { ApiRecordLinkManager } from '@d19n/odin-sdk-generator/dist/api.record.link.manager';
|
|
6
|
+
import { AfpInvoiceFileProperties } from '../entities-v2/AfpInvoiceFile';
|
|
7
|
+
export declare class AfpInvoiceFileApi extends ApiProvider {
|
|
8
|
+
protected readonly authToken?: string;
|
|
9
|
+
private readonly moduleName;
|
|
10
|
+
private readonly entityName;
|
|
11
|
+
private readonly entityType;
|
|
12
|
+
private sourceRecord;
|
|
13
|
+
readonly appointment__file: ApiRecordLinkManager;
|
|
14
|
+
readonly ugexternalaudit_file: ApiRecordLinkManager;
|
|
15
|
+
readonly yftoolaudit_file: ApiRecordLinkManager;
|
|
16
|
+
readonly wayleaveaudit_file: ApiRecordLinkManager;
|
|
17
|
+
readonly workorder__file: ApiRecordLinkManager;
|
|
18
|
+
readonly internalinstallaudit_file: ApiRecordLinkManager;
|
|
19
|
+
readonly knowledgearticle__file: ApiRecordLinkManager;
|
|
20
|
+
readonly case__file: ApiRecordLinkManager;
|
|
21
|
+
readonly lead__file: ApiRecordLinkManager;
|
|
22
|
+
readonly contact__file: ApiRecordLinkManager;
|
|
23
|
+
readonly order__file: ApiRecordLinkManager;
|
|
24
|
+
readonly billingrequest__file: ApiRecordLinkManager;
|
|
25
|
+
readonly transaction__file: ApiRecordLinkManager;
|
|
26
|
+
readonly paymentmethod__file: ApiRecordLinkManager;
|
|
27
|
+
readonly customerdeviceont__file: ApiRecordLinkManager;
|
|
28
|
+
readonly creditnote__file: ApiRecordLinkManager;
|
|
29
|
+
readonly address__file: ApiRecordLinkManager;
|
|
30
|
+
readonly changereason__file: ApiRecordLinkManager;
|
|
31
|
+
readonly discount__file: ApiRecordLinkManager;
|
|
32
|
+
readonly paymentmethodrefund__file: ApiRecordLinkManager;
|
|
33
|
+
readonly serviceappointment__file: ApiRecordLinkManager;
|
|
34
|
+
readonly billingadjustment__file: ApiRecordLinkManager;
|
|
35
|
+
readonly activity__file: ApiRecordLinkManager;
|
|
36
|
+
readonly netomniainstallverification__file: ApiRecordLinkManager;
|
|
37
|
+
readonly netomniaftthservicevisitsheet__file: ApiRecordLinkManager;
|
|
38
|
+
readonly netomniaftth1stageinstallaudit__file: ApiRecordLinkManager;
|
|
39
|
+
readonly customerdevicerouter__file: ApiRecordLinkManager;
|
|
40
|
+
readonly visit__file: ApiRecordLinkManager;
|
|
41
|
+
readonly netomniaftth2stageinstallaudit__file: ApiRecordLinkManager;
|
|
42
|
+
readonly yfstockcount__file: ApiRecordLinkManager;
|
|
43
|
+
readonly yfequipmentcollection__file: ApiRecordLinkManager;
|
|
44
|
+
readonly onetouchswitch_file: ApiRecordLinkManager;
|
|
45
|
+
readonly yffieldservicevisit__file: ApiRecordLinkManager;
|
|
46
|
+
readonly remediationrequiredreason__file: ApiRecordLinkManager;
|
|
47
|
+
readonly invoice__file: ApiRecordLinkManager;
|
|
48
|
+
readonly yfvanaudit_file: ApiRecordLinkManager;
|
|
49
|
+
readonly fingerprint__file: ApiRecordLinkManager;
|
|
50
|
+
readonly note__file: ApiRecordLinkManager;
|
|
51
|
+
readonly sweepermaintenanceaudit__file: ApiRecordLinkManager;
|
|
52
|
+
readonly blockagereporta55__file: ApiRecordLinkManager;
|
|
53
|
+
readonly uginstallationaudit__file: ApiRecordLinkManager;
|
|
54
|
+
readonly ohinstallationaudit__file: ApiRecordLinkManager;
|
|
55
|
+
readonly servicevisitaudit__file: ApiRecordLinkManager;
|
|
56
|
+
readonly ohauditofinstallation__file: ApiRecordLinkManager;
|
|
57
|
+
readonly ugauditofinstallation__file: ApiRecordLinkManager;
|
|
58
|
+
readonly ugretroaudit__file: ApiRecordLinkManager;
|
|
59
|
+
readonly ohretroaudit__file: ApiRecordLinkManager;
|
|
60
|
+
readonly remediationoutcomeform_file: ApiRecordLinkManager;
|
|
61
|
+
readonly uginprogressaudit_file: ApiRecordLinkManager;
|
|
62
|
+
readonly ohinprogressaudit_file: ApiRecordLinkManager;
|
|
63
|
+
readonly blockagea55_file: ApiRecordLinkManager;
|
|
64
|
+
readonly overlayreala55_file: ApiRecordLinkManager;
|
|
65
|
+
readonly ohexternalaudit_file: ApiRecordLinkManager;
|
|
66
|
+
readonly attachments: ApiRecordLinkManager;
|
|
67
|
+
readonly message_file: ApiRecordLinkManager;
|
|
68
|
+
readonly note: ApiRecordLinkManager;
|
|
69
|
+
constructor(authParams?: OauthParams, authToken?: string);
|
|
70
|
+
setRecord(sourceRecord: any): void;
|
|
71
|
+
schema(): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinSchema>;
|
|
72
|
+
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/api.interfaces").OdinSearchResponse<any>>;
|
|
73
|
+
searchAndPaginate(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/api.interfaces").OdinSearchResponse<any>>;
|
|
74
|
+
reIndex(body: {
|
|
75
|
+
id: string;
|
|
76
|
+
schemaId: string;
|
|
77
|
+
}[]): Promise<any>;
|
|
78
|
+
get(fileId: string): Promise<any>;
|
|
79
|
+
getMany(fileIds: string[]): Promise<any[]>;
|
|
80
|
+
upsert(upsertDto: OdinRecordCreateDto<AfpInvoiceFileProperties>): Promise<any>;
|
|
81
|
+
upsertMany(upsertDtos: OdinRecordCreateDto<AfpInvoiceFileProperties>[]): Promise<any[]>;
|
|
82
|
+
update(updateDto: OdinRecordUpdateDto<AfpInvoiceFileProperties>): Promise<any>;
|
|
83
|
+
updateMany(updateDtos: OdinRecordUpdateDto<AfpInvoiceFileProperties>[]): Promise<any[]>;
|
|
84
|
+
delete(fileId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinDeleteResponse>;
|
|
85
|
+
deleteMany(fileIds: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinDeleteResponse[]>;
|
|
86
|
+
restore(fileIds: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinRestoreResponse[]>;
|
|
87
|
+
getVersions(): Promise<{
|
|
88
|
+
[key: string]: Record<string, any>;
|
|
89
|
+
}>;
|
|
90
|
+
getRevisionTimeline(): Promise<{
|
|
91
|
+
[key: string]: Record<string, any>[];
|
|
92
|
+
}>;
|
|
93
|
+
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AfpInvoiceFileApi = void 0;
|
|
13
|
+
const api_provider_1 = require("@d19n/odin-sdk-generator/dist/api.provider");
|
|
14
|
+
const api_record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/api.record.link.manager");
|
|
15
|
+
class AfpInvoiceFileApi extends api_provider_1.ApiProvider {
|
|
16
|
+
constructor(authParams, authToken) {
|
|
17
|
+
super(authParams, authToken);
|
|
18
|
+
this.authToken = authToken;
|
|
19
|
+
this.moduleName = 'SchemaModule';
|
|
20
|
+
this.entityName = 'File';
|
|
21
|
+
this.entityType = 'AFP_INVOICE';
|
|
22
|
+
this.appointment__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'Appointment__File');
|
|
23
|
+
this.ugexternalaudit_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'UgExternalAudit_File');
|
|
24
|
+
this.yftoolaudit_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'YfToolAudit_File');
|
|
25
|
+
this.wayleaveaudit_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'WayleaveAudit_File');
|
|
26
|
+
this.workorder__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'WorkOrder__File');
|
|
27
|
+
this.internalinstallaudit_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'InternalInstallAudit_File');
|
|
28
|
+
this.knowledgearticle__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'KnowledgeArticle__File');
|
|
29
|
+
this.case__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'Case__File');
|
|
30
|
+
this.lead__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'Lead__File');
|
|
31
|
+
this.contact__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'Contact__File');
|
|
32
|
+
this.order__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'Order__File');
|
|
33
|
+
this.billingrequest__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'BillingRequest__File');
|
|
34
|
+
this.transaction__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'Transaction__File');
|
|
35
|
+
this.paymentmethod__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'PaymentMethod__File');
|
|
36
|
+
this.customerdeviceont__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'CustomerDeviceOnt__File');
|
|
37
|
+
this.creditnote__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'CreditNote__File');
|
|
38
|
+
this.address__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'Address__File');
|
|
39
|
+
this.changereason__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'ChangeReason__File');
|
|
40
|
+
this.discount__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'Discount__File');
|
|
41
|
+
this.paymentmethodrefund__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'PaymentMethodRefund__File');
|
|
42
|
+
this.serviceappointment__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'ServiceAppointment__File');
|
|
43
|
+
this.billingadjustment__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'BillingAdjustment__File');
|
|
44
|
+
this.activity__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'Activity__File');
|
|
45
|
+
this.netomniainstallverification__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'NetomniaInstallVerification__File');
|
|
46
|
+
this.netomniaftthservicevisitsheet__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'NetomniaFtthServiceVisitSheet__File');
|
|
47
|
+
this.netomniaftth1stageinstallaudit__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'NetomniaFtth1StageInstallAudit__File');
|
|
48
|
+
this.customerdevicerouter__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'CustomerDeviceRouter__File');
|
|
49
|
+
this.visit__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'Visit__File');
|
|
50
|
+
this.netomniaftth2stageinstallaudit__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'NetomniaFtth2StageInstallAudit__File');
|
|
51
|
+
this.yfstockcount__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'YfStockCount__File');
|
|
52
|
+
this.yfequipmentcollection__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'YfEquipmentCollection__File');
|
|
53
|
+
this.onetouchswitch_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'OneTouchSwitch_File');
|
|
54
|
+
this.yffieldservicevisit__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'YfFieldServiceVisit__File');
|
|
55
|
+
this.remediationrequiredreason__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'RemediationRequiredReason__File');
|
|
56
|
+
this.invoice__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'Invoice__File');
|
|
57
|
+
this.yfvanaudit_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'YfVanAudit_File');
|
|
58
|
+
this.fingerprint__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'Fingerprint__File');
|
|
59
|
+
this.note__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'Note__File');
|
|
60
|
+
this.sweepermaintenanceaudit__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'SweeperMaintenanceAudit__File');
|
|
61
|
+
this.blockagereporta55__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'BlockageReportA55__File');
|
|
62
|
+
this.uginstallationaudit__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'UgInstallationAudit__File');
|
|
63
|
+
this.ohinstallationaudit__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'OhInstallationAudit__File');
|
|
64
|
+
this.servicevisitaudit__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'ServiceVisitAudit__File');
|
|
65
|
+
this.ohauditofinstallation__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'OhAuditOfInstallation__File');
|
|
66
|
+
this.ugauditofinstallation__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'UgAuditOfInstallation__File');
|
|
67
|
+
this.ugretroaudit__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'UgRetroAudit__File');
|
|
68
|
+
this.ohretroaudit__file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'OhRetroAudit__File');
|
|
69
|
+
this.remediationoutcomeform_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'RemediationOutcomeForm_File');
|
|
70
|
+
this.uginprogressaudit_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'UgInProgressAudit_File');
|
|
71
|
+
this.ohinprogressaudit_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'OhInProgressAudit_File');
|
|
72
|
+
this.blockagea55_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'BlockageA55_File');
|
|
73
|
+
this.overlayreala55_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'OverlayRealA55_File');
|
|
74
|
+
this.ohexternalaudit_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'OhExternalAudit_File');
|
|
75
|
+
this.attachments = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'Attachments');
|
|
76
|
+
this.message_file = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SchemaModule:File', 'Message_File');
|
|
77
|
+
this.note = new api_record_link_manager_1.ApiRecordLinkManager('SchemaModule:File', 'SupportModule:Note', 'File__Note');
|
|
78
|
+
}
|
|
79
|
+
setRecord(sourceRecord) {
|
|
80
|
+
this.sourceRecord = sourceRecord;
|
|
81
|
+
}
|
|
82
|
+
schema() {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
84
|
+
return yield this.getSchema(this.moduleName, this.entityName);
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
// Use this function when you want to search and handle all pagination on your own
|
|
88
|
+
search(params) {
|
|
89
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
+
return yield this._searchRecords(this.moduleName, this.entityName, params);
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
// Use this function when you want paginating through the results to be handled
|
|
94
|
+
searchAndPaginate(params) {
|
|
95
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
96
|
+
return yield this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params);
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
// Use this function to re-index records in elastic search
|
|
100
|
+
reIndex(body) {
|
|
101
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
102
|
+
return yield this._reIndexRecords(body);
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
// Use this function when you want to return a single record
|
|
106
|
+
get(fileId) {
|
|
107
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
+
const res = yield this._getByPrimaryKey(this.moduleName, this.entityName, fileId);
|
|
109
|
+
this.setRecord(res);
|
|
110
|
+
return res;
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
// Use this function when you want to return many records by primaryKeys
|
|
114
|
+
getMany(fileIds) {
|
|
115
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
116
|
+
return yield this._getManyByPrimaryKey(this.moduleName, this.entityName, fileIds);
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
// Use this function when you want to upsert one record
|
|
120
|
+
upsert(upsertDto) {
|
|
121
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
122
|
+
const res = yield this._upsert(this.moduleName, this.entityName, [upsertDto]);
|
|
123
|
+
return res[0];
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
// Use this function when you want to upsert many records
|
|
127
|
+
upsertMany(upsertDtos) {
|
|
128
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
129
|
+
return yield this._upsert(this.moduleName, this.entityName, upsertDtos);
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
// Use this function when you want to update one record
|
|
133
|
+
update(updateDto) {
|
|
134
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
135
|
+
const res = yield this._update(this.moduleName, this.entityName, [updateDto]);
|
|
136
|
+
return res[0];
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
// Use this function when you want to update many records
|
|
140
|
+
updateMany(updateDtos) {
|
|
141
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
142
|
+
return yield this._update(this.moduleName, this.entityName, updateDtos);
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
// Use this function when you want to delete one record
|
|
146
|
+
delete(fileId) {
|
|
147
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
148
|
+
const res = yield this._delete(this.moduleName, this.entityName, [fileId]);
|
|
149
|
+
return res[0];
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
// Use this function when you want to delete many records
|
|
153
|
+
deleteMany(fileIds) {
|
|
154
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
155
|
+
return yield this._delete(this.moduleName, this.entityName, fileIds);
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
// Use this function when you want to restore one or many records
|
|
159
|
+
restore(fileIds) {
|
|
160
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
161
|
+
return yield this._restore(this.moduleName, this.entityName, fileIds);
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
// Use this function when you want to return the versions for a single record
|
|
165
|
+
getVersions() {
|
|
166
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
167
|
+
return yield this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
// Use this function when you want to return the change history for a single record
|
|
171
|
+
getRevisionTimeline() {
|
|
172
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
173
|
+
return yield this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
exports.AfpInvoiceFileApi = AfpInvoiceFileApi;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { OauthParams } from '@d19n/odin-sdk-generator/dist/api.interfaces';
|
|
2
|
+
import { ApiProvider } from '@d19n/odin-sdk-generator/dist/api.provider';
|
|
3
|
+
import { OdinSearchV2 } from '@d19n/odin-types/dist/interfaces/v2.db.interfaces';
|
|
4
|
+
import { OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
5
|
+
import { ApiRecordLinkManager } from '@d19n/odin-sdk-generator/dist/api.record.link.manager';
|
|
6
|
+
import { BundleProductProperties } from '../entities-v2/BundleProduct';
|
|
7
|
+
export declare class BundleProductApi extends ApiProvider {
|
|
8
|
+
protected readonly authToken?: string;
|
|
9
|
+
private readonly moduleName;
|
|
10
|
+
private readonly entityName;
|
|
11
|
+
private readonly entityType;
|
|
12
|
+
private sourceRecord;
|
|
13
|
+
readonly restriction: ApiRecordLinkManager;
|
|
14
|
+
readonly productcomponent: ApiRecordLinkManager;
|
|
15
|
+
readonly offer: ApiRecordLinkManager;
|
|
16
|
+
readonly consumptionschedule: ApiRecordLinkManager;
|
|
17
|
+
readonly lead: ApiRecordLinkManager;
|
|
18
|
+
readonly service: ApiRecordLinkManager;
|
|
19
|
+
readonly vendor: ApiRecordLinkManager;
|
|
20
|
+
readonly pricebook: ApiRecordLinkManager;
|
|
21
|
+
readonly orderitem: ApiRecordLinkManager;
|
|
22
|
+
readonly product: ApiRecordLinkManager;
|
|
23
|
+
constructor(authParams?: OauthParams, authToken?: string);
|
|
24
|
+
setRecord(sourceRecord: any): void;
|
|
25
|
+
schema(): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinSchema>;
|
|
26
|
+
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/api.interfaces").OdinSearchResponse<any>>;
|
|
27
|
+
searchAndPaginate(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/api.interfaces").OdinSearchResponse<any>>;
|
|
28
|
+
reIndex(body: {
|
|
29
|
+
id: string;
|
|
30
|
+
schemaId: string;
|
|
31
|
+
}[]): Promise<any>;
|
|
32
|
+
get(productId: string): Promise<any>;
|
|
33
|
+
getMany(productIds: string[]): Promise<any[]>;
|
|
34
|
+
upsert(upsertDto: OdinRecordCreateDto<BundleProductProperties>): Promise<any>;
|
|
35
|
+
upsertMany(upsertDtos: OdinRecordCreateDto<BundleProductProperties>[]): Promise<any[]>;
|
|
36
|
+
update(updateDto: OdinRecordUpdateDto<BundleProductProperties>): Promise<any>;
|
|
37
|
+
updateMany(updateDtos: OdinRecordUpdateDto<BundleProductProperties>[]): Promise<any[]>;
|
|
38
|
+
delete(productId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinDeleteResponse>;
|
|
39
|
+
deleteMany(productIds: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinDeleteResponse[]>;
|
|
40
|
+
restore(productIds: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinRestoreResponse[]>;
|
|
41
|
+
getVersions(): Promise<{
|
|
42
|
+
[key: string]: Record<string, any>;
|
|
43
|
+
}>;
|
|
44
|
+
getRevisionTimeline(): Promise<{
|
|
45
|
+
[key: string]: Record<string, any>[];
|
|
46
|
+
}>;
|
|
47
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.BundleProductApi = void 0;
|
|
13
|
+
const api_provider_1 = require("@d19n/odin-sdk-generator/dist/api.provider");
|
|
14
|
+
const api_record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/api.record.link.manager");
|
|
15
|
+
class BundleProductApi extends api_provider_1.ApiProvider {
|
|
16
|
+
constructor(authParams, authToken) {
|
|
17
|
+
super(authParams, authToken);
|
|
18
|
+
this.authToken = authToken;
|
|
19
|
+
this.moduleName = 'ProductModule';
|
|
20
|
+
this.entityName = 'Product';
|
|
21
|
+
this.entityType = 'BUNDLE';
|
|
22
|
+
this.restriction = new api_record_link_manager_1.ApiRecordLinkManager('ProductModule:Product', 'ProductModule:Restriction', 'Product__Restriction');
|
|
23
|
+
this.productcomponent = new api_record_link_manager_1.ApiRecordLinkManager('ProductModule:Product', 'ProductModule:ProductComponent', 'Product__ProductComponent');
|
|
24
|
+
this.offer = new api_record_link_manager_1.ApiRecordLinkManager('ProductModule:Product', 'ProductModule:Offer', 'Offer__Product');
|
|
25
|
+
this.consumptionschedule = new api_record_link_manager_1.ApiRecordLinkManager('ProductModule:Product', 'ProductModule:ConsumptionSchedule', 'Product__ConsumptionSchedule');
|
|
26
|
+
this.lead = new api_record_link_manager_1.ApiRecordLinkManager('ProductModule:Product', 'CrmModule:Lead', 'Lead__Product');
|
|
27
|
+
this.service = new api_record_link_manager_1.ApiRecordLinkManager('ProductModule:Product', 'ServiceModule:Service', 'Product__Service');
|
|
28
|
+
this.vendor = new api_record_link_manager_1.ApiRecordLinkManager('ProductModule:Product', 'ProductModule:Vendor', 'Vendor__Product');
|
|
29
|
+
this.pricebook = new api_record_link_manager_1.ApiRecordLinkManager('ProductModule:Product', 'ProductModule:PriceBook', 'PriceBook__Product');
|
|
30
|
+
this.orderitem = new api_record_link_manager_1.ApiRecordLinkManager('ProductModule:Product', 'OrderModule:OrderItem', 'OrderItem__Product');
|
|
31
|
+
this.product = new api_record_link_manager_1.ApiRecordLinkManager('ProductModule:Product', 'ProductModule:Product', 'Product__Product');
|
|
32
|
+
}
|
|
33
|
+
setRecord(sourceRecord) {
|
|
34
|
+
this.sourceRecord = sourceRecord;
|
|
35
|
+
}
|
|
36
|
+
schema() {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
return yield this.getSchema(this.moduleName, this.entityName);
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
// Use this function when you want to search and handle all pagination on your own
|
|
42
|
+
search(params) {
|
|
43
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
44
|
+
return yield this._searchRecords(this.moduleName, this.entityName, params);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
// Use this function when you want paginating through the results to be handled
|
|
48
|
+
searchAndPaginate(params) {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
return yield this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params);
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
// Use this function to re-index records in elastic search
|
|
54
|
+
reIndex(body) {
|
|
55
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
+
return yield this._reIndexRecords(body);
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
// Use this function when you want to return a single record
|
|
60
|
+
get(productId) {
|
|
61
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
+
const res = yield this._getByPrimaryKey(this.moduleName, this.entityName, productId);
|
|
63
|
+
this.setRecord(res);
|
|
64
|
+
return res;
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
// Use this function when you want to return many records by primaryKeys
|
|
68
|
+
getMany(productIds) {
|
|
69
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
return yield this._getManyByPrimaryKey(this.moduleName, this.entityName, productIds);
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
// Use this function when you want to upsert one record
|
|
74
|
+
upsert(upsertDto) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
const res = yield this._upsert(this.moduleName, this.entityName, [upsertDto]);
|
|
77
|
+
return res[0];
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
// Use this function when you want to upsert many records
|
|
81
|
+
upsertMany(upsertDtos) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
83
|
+
return yield this._upsert(this.moduleName, this.entityName, upsertDtos);
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
// Use this function when you want to update one record
|
|
87
|
+
update(updateDto) {
|
|
88
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
89
|
+
const res = yield this._update(this.moduleName, this.entityName, [updateDto]);
|
|
90
|
+
return res[0];
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
// Use this function when you want to update many records
|
|
94
|
+
updateMany(updateDtos) {
|
|
95
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
96
|
+
return yield this._update(this.moduleName, this.entityName, updateDtos);
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
// Use this function when you want to delete one record
|
|
100
|
+
delete(productId) {
|
|
101
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
102
|
+
const res = yield this._delete(this.moduleName, this.entityName, [productId]);
|
|
103
|
+
return res[0];
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
// Use this function when you want to delete many records
|
|
107
|
+
deleteMany(productIds) {
|
|
108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
+
return yield this._delete(this.moduleName, this.entityName, productIds);
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
// Use this function when you want to restore one or many records
|
|
113
|
+
restore(productIds) {
|
|
114
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
115
|
+
return yield this._restore(this.moduleName, this.entityName, productIds);
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
// Use this function when you want to return the versions for a single record
|
|
119
|
+
getVersions() {
|
|
120
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
121
|
+
return yield this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
// Use this function when you want to return the change history for a single record
|
|
125
|
+
getRevisionTimeline() {
|
|
126
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
127
|
+
return yield this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
exports.BundleProductApi = BundleProductApi;
|