@ripwords/myinvois-client 0.2.20 → 0.2.22
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 +5 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +5 -0
- package/dist/index10.cjs +187 -16
- package/dist/index10.cjs.map +1 -1
- package/dist/index12.cjs +16 -25
- package/dist/index12.cjs.map +1 -1
- package/dist/index13.cjs +0 -24
- package/dist/index15.cjs +29 -0
- package/dist/index15.cjs.map +1 -0
- package/dist/index16.cjs +25 -0
- package/dist/index16.cjs.map +1 -0
- package/dist/index17.cjs +0 -5
- package/dist/index18.cjs +33 -6
- package/dist/index18.cjs.map +1 -0
- package/dist/index19.cjs +23 -4
- package/dist/{index13.cjs.map → index19.cjs.map} +1 -1
- package/dist/index2.cjs +4 -61
- package/dist/index20.cjs +0 -3
- package/dist/index21.cjs +0 -3
- package/dist/index22.cjs +0 -6
- package/dist/index3.cjs +6 -531
- package/dist/index4.cjs +4 -195
- package/dist/index5.cjs +3 -0
- package/dist/index6.cjs +2 -24
- package/dist/index67.cts.map +1 -1
- package/dist/index7.cjs +6 -0
- package/dist/index8.cjs +62 -0
- package/dist/{index2.cjs.map → index8.cjs.map} +1 -1
- package/dist/index9.cjs +526 -23
- package/dist/index9.cjs.map +1 -1
- package/package.json +1 -1
- package/dist/index3.cjs.map +0 -1
- package/dist/index4.cjs.map +0 -1
- package/dist/index6.cjs.map +0 -1
package/dist/index18.cjs
CHANGED
|
@@ -1,7 +1,34 @@
|
|
|
1
|
-
require('./formatIdValue-i67o4kyD.cjs');
|
|
2
|
-
require('./document-Dvonhaqt.cjs');
|
|
3
|
-
const require_documentSubmission = require('./documentSubmission-CWscnXdN.cjs');
|
|
4
1
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
//#region src/types/state-codes.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Enum representing the allowed state codes with descriptive names.
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index18.cjs","names":[],"sources":["../src/types/state-codes.d.ts"],"sourcesContent":["/**\n * Represents the allowed codes for Malaysian states and federal territories.\n * Based on the documentation: https://sdk.myinvois.hasil.gov.my/codes/state-codes/\n */\nexport type StateCode =\n | '01' // Johor\n | '02' // Kedah\n | '03' // Kelantan\n | '04' // Melaka\n | '05' // Negeri Sembilan\n | '06' // Pahang\n | '07' // Pulau Pinang\n | '08' // Perak\n | '09' // Perlis\n | '10' // Selangor\n | '11' // Terengganu\n | '12' // Sabah\n | '13' // Sarawak\n | '14' // Wilayah Persekutuan Kuala Lumpur\n | '15' // Wilayah Persekutuan Labuan\n | '16' // Wilayah Persekutuan Putrajaya\n | '17' // Not Applicable\n\n/**\n * Enum representing the allowed state codes with descriptive names.\n * Provides a more readable way to reference states.\n *\n * @example\n * const code = StateCodeEnum.Selangor;\n * console.log(code); // Output: \"10\"\n */\nexport enum StateCodeEnum {\n Johor = '01',\n Kedah = '02',\n Kelantan = '03',\n Melaka = '04',\n NegeriSembilan = '05',\n Pahang = '06',\n PulauPinang = '07',\n Perak = '08',\n Perlis = '09',\n Selangor = '10',\n Terengganu = '11',\n Sabah = '12',\n Sarawak = '13',\n WPKualaLumpur = '14',\n WPLabuan = '15',\n WPPutrajaya = '16',\n NotApplicable = '17',\n}\n\n/**\n * Interface representing a state code entry.\n * Contains the code and its corresponding name.\n */\nexport interface State {\n code: StateCode\n name: string\n}\n"],"mappings":";;;;;;;;;;AA+BA,IAAY,0DAAL;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACD"}
|
package/dist/index19.cjs
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
|
-
const require_documentTypeManagement = require('./documentTypeManagement-D_-LiQVg.cjs');
|
|
2
1
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
//#region src/types/tax-types.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Enum representing the allowed tax type codes with descriptive names.
|
|
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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"index19.cjs","names":[],"sources":["../src/types/tax-types.d.ts"],"sourcesContent":["/**\n * Represents the allowed codes for tax types.\n * Based on the documentation: https://sdk.myinvois.hasil.gov.my/codes/tax-types/\n */\nexport type TaxTypeCode =\n | '01' // Sales Tax\n | '02' // Service Tax\n | '03' // Tourism Tax\n | '04' // High-Value Goods Tax\n | '05' // Sales Tax on Low Value Goods\n | '06' // Not Applicable\n | 'E' // Tax exemption (where applicable)\n\n/**\n * Enum representing the allowed tax type codes with descriptive names.\n * Provides a more readable way to reference tax types.\n *\n * @example\n * const code = TaxTypeCodeEnum.SalesTax;\n * console.log(code); // Output: \"01\"\n */\nexport enum TaxTypeCodeEnum {\n SalesTax = '01',\n ServiceTax = '02',\n TourismTax = '03',\n HighValueGoodsTax = '04',\n SalesTaxLowValueGoods = '05',\n NotApplicable = '06',\n TaxExemption = 'E',\n}\n\n/**\n * Interface representing a tax type entry.\n * Contains the code and its corresponding description.\n */\nexport interface TaxType {\n code: TaxTypeCode\n description: string\n}\n"],"mappings":";;;;;;;;;;AAqBA,IAAY,8DAAL;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AACD"}
|
package/dist/index2.cjs
CHANGED
|
@@ -1,62 +1,5 @@
|
|
|
1
|
+
const require_documentManagement = require('./documentManagement-DQ7JEcBq.cjs');
|
|
1
2
|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
|
3
|
+
exports.getDocument = require_documentManagement.getDocument;
|
|
4
|
+
exports.getDocumentDetails = require_documentManagement.getDocumentDetails;
|
|
5
|
+
exports.searchDocuments = require_documentManagement.searchDocuments;
|
package/dist/index20.cjs
CHANGED
package/dist/index21.cjs
CHANGED
package/dist/index22.cjs
CHANGED
|
@@ -1,6 +0,0 @@
|
|
|
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;
|