@ripwords/myinvois-client 0.2.32 → 0.2.34
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/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/index10.cjs +16 -187
- package/dist/index10.cjs.map +1 -1
- package/dist/index12.cjs +25 -16
- package/dist/index12.cjs.map +1 -1
- package/dist/index13.cjs +24 -0
- package/dist/{index19.cjs.map → index13.cjs.map} +1 -1
- package/dist/index15.cjs +0 -29
- package/dist/index16.cjs +0 -25
- package/dist/index17.cjs +5 -0
- package/dist/index18.cjs +6 -33
- package/dist/index19.cjs +4 -23
- package/dist/index2.cjs +61 -4
- package/dist/{index8.cjs.map → index2.cjs.map} +1 -1
- package/dist/index20.cjs +3 -0
- package/dist/index21.cjs +3 -0
- package/dist/index22.cjs +6 -0
- package/dist/index3.cjs +531 -6
- package/dist/index3.cjs.map +1 -0
- package/dist/index4.cjs +195 -4
- package/dist/index4.cjs.map +1 -0
- package/dist/index5.cjs +0 -3
- package/dist/index6.cjs +24 -2
- package/dist/index6.cjs.map +1 -0
- package/dist/index67.cts.map +1 -1
- package/dist/index7.cjs +0 -6
- package/dist/index8.cjs +0 -62
- package/dist/index9.cjs +23 -526
- package/dist/index9.cjs.map +1 -1
- package/package.json +1 -1
- package/dist/index15.cjs.map +0 -1
- package/dist/index16.cjs.map +0 -1
- package/dist/index18.cjs.map +0 -1
package/dist/index18.cjs
CHANGED
|
@@ -1,34 +1,7 @@
|
|
|
1
|
+
require('./formatIdValue-i67o4kyD.cjs');
|
|
2
|
+
require('./document-DWsGewNs.cjs');
|
|
3
|
+
const require_documentSubmission = require('./documentSubmission-YwuM4ap1.cjs');
|
|
1
4
|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* Provides a more readable way to reference states.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* const code = StateCodeEnum.Selangor;
|
|
9
|
-
* console.log(code); // Output: "10"
|
|
10
|
-
*/
|
|
11
|
-
let StateCodeEnum = /* @__PURE__ */ function(StateCodeEnum$1) {
|
|
12
|
-
StateCodeEnum$1["Johor"] = "01";
|
|
13
|
-
StateCodeEnum$1["Kedah"] = "02";
|
|
14
|
-
StateCodeEnum$1["Kelantan"] = "03";
|
|
15
|
-
StateCodeEnum$1["Melaka"] = "04";
|
|
16
|
-
StateCodeEnum$1["NegeriSembilan"] = "05";
|
|
17
|
-
StateCodeEnum$1["Pahang"] = "06";
|
|
18
|
-
StateCodeEnum$1["PulauPinang"] = "07";
|
|
19
|
-
StateCodeEnum$1["Perak"] = "08";
|
|
20
|
-
StateCodeEnum$1["Perlis"] = "09";
|
|
21
|
-
StateCodeEnum$1["Selangor"] = "10";
|
|
22
|
-
StateCodeEnum$1["Terengganu"] = "11";
|
|
23
|
-
StateCodeEnum$1["Sabah"] = "12";
|
|
24
|
-
StateCodeEnum$1["Sarawak"] = "13";
|
|
25
|
-
StateCodeEnum$1["WPKualaLumpur"] = "14";
|
|
26
|
-
StateCodeEnum$1["WPLabuan"] = "15";
|
|
27
|
-
StateCodeEnum$1["WPPutrajaya"] = "16";
|
|
28
|
-
StateCodeEnum$1["NotApplicable"] = "17";
|
|
29
|
-
return StateCodeEnum$1;
|
|
30
|
-
}({});
|
|
31
|
-
|
|
32
|
-
//#endregion
|
|
33
|
-
exports.StateCodeEnum = StateCodeEnum;
|
|
34
|
-
//# sourceMappingURL=index18.cjs.map
|
|
5
|
+
exports.getSubmissionStatus = require_documentSubmission.getSubmissionStatus;
|
|
6
|
+
exports.performDocumentAction = require_documentSubmission.performDocumentAction;
|
|
7
|
+
exports.submitDocument = require_documentSubmission.submitDocument;
|
package/dist/index19.cjs
CHANGED
|
@@ -1,24 +1,5 @@
|
|
|
1
|
+
const require_documentTypeManagement = require('./documentTypeManagement-D_-LiQVg.cjs');
|
|
1
2
|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* Provides a more readable way to reference tax types.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* const code = TaxTypeCodeEnum.SalesTax;
|
|
9
|
-
* console.log(code); // Output: "01"
|
|
10
|
-
*/
|
|
11
|
-
let TaxTypeCodeEnum = /* @__PURE__ */ function(TaxTypeCodeEnum$1) {
|
|
12
|
-
TaxTypeCodeEnum$1["SalesTax"] = "01";
|
|
13
|
-
TaxTypeCodeEnum$1["ServiceTax"] = "02";
|
|
14
|
-
TaxTypeCodeEnum$1["TourismTax"] = "03";
|
|
15
|
-
TaxTypeCodeEnum$1["HighValueGoodsTax"] = "04";
|
|
16
|
-
TaxTypeCodeEnum$1["SalesTaxLowValueGoods"] = "05";
|
|
17
|
-
TaxTypeCodeEnum$1["NotApplicable"] = "06";
|
|
18
|
-
TaxTypeCodeEnum$1["TaxExemption"] = "E";
|
|
19
|
-
return TaxTypeCodeEnum$1;
|
|
20
|
-
}({});
|
|
21
|
-
|
|
22
|
-
//#endregion
|
|
23
|
-
exports.TaxTypeCodeEnum = TaxTypeCodeEnum;
|
|
24
|
-
//# sourceMappingURL=index19.cjs.map
|
|
3
|
+
exports.getDocumentType = require_documentTypeManagement.getDocumentType;
|
|
4
|
+
exports.getDocumentTypeVersion = require_documentTypeManagement.getDocumentTypeVersion;
|
|
5
|
+
exports.getDocumentTypes = require_documentTypeManagement.getDocumentTypes;
|
package/dist/index2.cjs
CHANGED
|
@@ -1,5 +1,62 @@
|
|
|
1
|
-
const require_documentManagement = require('./documentManagement-CyPwiyP4.cjs');
|
|
2
1
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
//#region src/types/classification-codes.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Enum representing the allowed classification codes with descriptive names.
|
|
5
|
+
* Provides a more readable way to reference classification codes.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* const code = ClassificationCodeEnum.ComputerSmartphoneOrTablet;
|
|
9
|
+
* console.log(code); // Output: "003"
|
|
10
|
+
*/
|
|
11
|
+
let ClassificationCodeEnum = /* @__PURE__ */ function(ClassificationCodeEnum$1) {
|
|
12
|
+
ClassificationCodeEnum$1["BreastfeedingEquipment"] = "001";
|
|
13
|
+
ClassificationCodeEnum$1["ChildCareCentresAndKindergartensFees"] = "002";
|
|
14
|
+
ClassificationCodeEnum$1["ComputerSmartphoneOrTablet"] = "003";
|
|
15
|
+
ClassificationCodeEnum$1["ConsolidatedEInvoice"] = "004";
|
|
16
|
+
ClassificationCodeEnum$1["ConstructionMaterials"] = "005";
|
|
17
|
+
ClassificationCodeEnum$1["Disbursement"] = "006";
|
|
18
|
+
ClassificationCodeEnum$1["Donation"] = "007";
|
|
19
|
+
ClassificationCodeEnum$1["ECommerceEInvoiceToBuyer"] = "008";
|
|
20
|
+
ClassificationCodeEnum$1["ECommerceSelfBilledToSellerLogistics"] = "009";
|
|
21
|
+
ClassificationCodeEnum$1["EducationFees"] = "010";
|
|
22
|
+
ClassificationCodeEnum$1["GoodsOnConsignmentConsignor"] = "011";
|
|
23
|
+
ClassificationCodeEnum$1["GoodsOnConsignmentConsignee"] = "012";
|
|
24
|
+
ClassificationCodeEnum$1["GymMembership"] = "013";
|
|
25
|
+
ClassificationCodeEnum$1["InsuranceEducationMedicalBenefits"] = "014";
|
|
26
|
+
ClassificationCodeEnum$1["InsuranceTakafulLife"] = "015";
|
|
27
|
+
ClassificationCodeEnum$1["InterestFinancingExpenses"] = "016";
|
|
28
|
+
ClassificationCodeEnum$1["InternetSubscription"] = "017";
|
|
29
|
+
ClassificationCodeEnum$1["LandAndBuilding"] = "018";
|
|
30
|
+
ClassificationCodeEnum$1["MedicalExamLearningDisabilities"] = "019";
|
|
31
|
+
ClassificationCodeEnum$1["MedicalExamVaccination"] = "020";
|
|
32
|
+
ClassificationCodeEnum$1["MedicalExpensesSeriousDiseases"] = "021";
|
|
33
|
+
ClassificationCodeEnum$1["Others"] = "022";
|
|
34
|
+
ClassificationCodeEnum$1["PetroleumOperations"] = "023";
|
|
35
|
+
ClassificationCodeEnum$1["PrivateRetirementSchemeDeferredAnnuity"] = "024";
|
|
36
|
+
ClassificationCodeEnum$1["MotorVehicle"] = "025";
|
|
37
|
+
ClassificationCodeEnum$1["SubscriptionBooksJournalsEtc"] = "026";
|
|
38
|
+
ClassificationCodeEnum$1["Reimbursement"] = "027";
|
|
39
|
+
ClassificationCodeEnum$1["RentalOfMotorVehicle"] = "028";
|
|
40
|
+
ClassificationCodeEnum$1["EVChargingFacilities"] = "029";
|
|
41
|
+
ClassificationCodeEnum$1["RepairAndMaintenance"] = "030";
|
|
42
|
+
ClassificationCodeEnum$1["ResearchAndDevelopment"] = "031";
|
|
43
|
+
ClassificationCodeEnum$1["ForeignIncome"] = "032";
|
|
44
|
+
ClassificationCodeEnum$1["SelfBilledBettingGaming"] = "033";
|
|
45
|
+
ClassificationCodeEnum$1["SelfBilledImportationGoods"] = "034";
|
|
46
|
+
ClassificationCodeEnum$1["SelfBilledImportationServices"] = "035";
|
|
47
|
+
ClassificationCodeEnum$1["SelfBilledOthers"] = "036";
|
|
48
|
+
ClassificationCodeEnum$1["SelfBilledMonetaryPaymentToAgents"] = "037";
|
|
49
|
+
ClassificationCodeEnum$1["SportsEquipmentRentalFeesEtc"] = "038";
|
|
50
|
+
ClassificationCodeEnum$1["SupportingEquipmentDisabledPerson"] = "039";
|
|
51
|
+
ClassificationCodeEnum$1["VoluntaryContributionProvidentFund"] = "040";
|
|
52
|
+
ClassificationCodeEnum$1["DentalExamTreatment"] = "041";
|
|
53
|
+
ClassificationCodeEnum$1["FertilityTreatment"] = "042";
|
|
54
|
+
ClassificationCodeEnum$1["TreatmentHomeCareNursingEtc"] = "043";
|
|
55
|
+
ClassificationCodeEnum$1["VouchersGiftCardsLoyaltyPoints"] = "044";
|
|
56
|
+
ClassificationCodeEnum$1["SelfBilledNonMonetaryPaymentToAgents"] = "045";
|
|
57
|
+
return ClassificationCodeEnum$1;
|
|
58
|
+
}({});
|
|
59
|
+
|
|
60
|
+
//#endregion
|
|
61
|
+
exports.ClassificationCodeEnum = ClassificationCodeEnum;
|
|
62
|
+
//# sourceMappingURL=index2.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"index2.cjs","names":[],"sources":["../src/types/classification-codes.d.ts"],"sourcesContent":["/**\n * Represents the allowed classification codes for e-Invoice items.\n * Based on the documentation: https://sdk.myinvois.hasil.gov.my/codes/classification-codes/\n */\nexport type ClassificationCode =\n | '001' // Breastfeeding equipment\n | '002' // Child care centres and kindergartens fees\n | '003' // Computer, smartphone or tablet\n | '004' // Consolidated e-Invoice\n | '005' // Construction materials (as specified under Fourth Schedule of the Lembaga Pembangunan Industri Pembinaan Malaysia Act 1994)\n | '006' // Disbursement\n | '007' // Donation\n | '008' // e-Commerce - e-Invoice to buyer / purchaser\n | '009' // e-Commerce - Self-billed e-Invoice to seller, logistics, etc.\n | '010' // Education fees\n | '011' // Goods on consignment (Consignor)\n | '012' // Goods on consignment (Consignee)\n | '013' // Gym membership\n | '014' // Insurance - Education and medical benefits\n | '015' // Insurance - Takaful or life insurance\n | '016' // Interest and financing expenses\n | '017' // Internet subscription\n | '018' // Land and building\n | '019' // Medical examination for learning disabilities and early intervention or rehabilitation treatments of learning disabilities\n | '020' // Medical examination or vaccination expenses\n | '021' // Medical expenses for serious diseases\n | '022' // Others\n | '023' // Petroleum operations (as defined in Petroleum (Income Tax) Act 1967)\n | '024' // Private retirement scheme or deferred annuity scheme\n | '025' // Motor vehicle\n | '026' // Subscription of books / journals / magazines / newspapers / other similar publications\n | '027' // Reimbursement\n | '028' // Rental of motor vehicle\n | '029' // EV charging facilities (Installation, rental, sale / purchase or subscription fees)\n | '030' // Repair and maintenance\n | '031' // Research and development\n | '032' // Foreign income\n | '033' // Self-billed - Betting and gaming\n | '034' // Self-billed - Importation of goods\n | '035' // Self-billed - Importation of services\n | '036' // Self-billed - Others\n | '037' // Self-billed - Monetary payment to agents, dealers or distributors\n | '038' // Sports equipment, rental / entry fees for sports facilities, registration in sports competition or sports training fees imposed by associations / sports clubs / companies registered with the Sports Commissioner or Companies Commission of Malaysia and carrying out sports activities as listed under the Sports Development Act 1997\n | '039' // Supporting equipment for disabled person\n | '040' // Voluntary contribution to approved provident fund\n | '041' // Dental examination or treatment\n | '042' // Fertility treatment\n | '043' // Treatment and home care nursing, daycare centres and residential care centers\n | '044' // Vouchers, gift cards, loyalty points, etc\n | '045' // Self-billed - Non-monetary payment to agents, dealers or distributors\n\n/**\n * Enum representing the allowed classification codes with descriptive names.\n * Provides a more readable way to reference classification codes.\n *\n * @example\n * const code = ClassificationCodeEnum.ComputerSmartphoneOrTablet;\n * console.log(code); // Output: \"003\"\n */\nexport enum ClassificationCodeEnum {\n BreastfeedingEquipment = '001',\n ChildCareCentresAndKindergartensFees = '002',\n ComputerSmartphoneOrTablet = '003',\n ConsolidatedEInvoice = '004',\n ConstructionMaterials = '005',\n Disbursement = '006',\n Donation = '007',\n ECommerceEInvoiceToBuyer = '008',\n ECommerceSelfBilledToSellerLogistics = '009',\n EducationFees = '010',\n GoodsOnConsignmentConsignor = '011',\n GoodsOnConsignmentConsignee = '012',\n GymMembership = '013',\n InsuranceEducationMedicalBenefits = '014',\n InsuranceTakafulLife = '015',\n InterestFinancingExpenses = '016',\n InternetSubscription = '017',\n LandAndBuilding = '018',\n MedicalExamLearningDisabilities = '019',\n MedicalExamVaccination = '020',\n MedicalExpensesSeriousDiseases = '021',\n Others = '022',\n PetroleumOperations = '023',\n PrivateRetirementSchemeDeferredAnnuity = '024',\n MotorVehicle = '025',\n SubscriptionBooksJournalsEtc = '026',\n Reimbursement = '027',\n RentalOfMotorVehicle = '028',\n EVChargingFacilities = '029',\n RepairAndMaintenance = '030',\n ResearchAndDevelopment = '031',\n ForeignIncome = '032',\n SelfBilledBettingGaming = '033',\n SelfBilledImportationGoods = '034',\n SelfBilledImportationServices = '035',\n SelfBilledOthers = '036',\n SelfBilledMonetaryPaymentToAgents = '037',\n SportsEquipmentRentalFeesEtc = '038',\n SupportingEquipmentDisabledPerson = '039',\n VoluntaryContributionProvidentFund = '040',\n DentalExamTreatment = '041',\n FertilityTreatment = '042',\n TreatmentHomeCareNursingEtc = '043',\n VouchersGiftCardsLoyaltyPoints = '044',\n SelfBilledNonMonetaryPaymentToAgents = '045',\n}\n\n/**\n * Interface representing a classification code entry.\n * Contains the code and its corresponding description.\n */\nexport interface Classification {\n code: ClassificationCode\n description: string\n}\n"],"mappings":";;;;;;;;;;AA2DA,IAAY,4EAAL;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACD"}
|
package/dist/index20.cjs
CHANGED
package/dist/index21.cjs
CHANGED
package/dist/index22.cjs
CHANGED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
require('./formatIdValue-i67o4kyD.cjs');
|
|
2
|
+
const require_taxpayerValidation = require('./taxpayerValidation-D_jGaVty.cjs');
|
|
3
|
+
|
|
4
|
+
exports.taxpayerQRCode = require_taxpayerValidation.taxpayerQRCode;
|
|
5
|
+
exports.tinSearch = require_taxpayerValidation.tinSearch;
|
|
6
|
+
exports.verifyTin = require_taxpayerValidation.verifyTin;
|