[mercadopago]: add definition for mercadopago/dx-nodejs#49745
[mercadopago]: add definition for mercadopago/dx-nodejs#49745sheetalkamat merged 7 commits intoDefinitelyTyped:masterfrom
Conversation
|
@danieldspx Thank you for submitting this PR! I see this is your first time submitting to DefinitelyTyped 👋 — I'm the local bot who will help you through the process of getting things through. This is a live comment which I will keep updated. 1 package in this PR
Code ReviewsThis PR adds a new definition, so it needs to be reviewed by a DT maintainer before it can be merged. Status
Once every item on this list is checked, I'll ask you for permission to merge and publish the changes. Diagnostic Information: What the bot saw about this PR{
"type": "info",
"now": "-",
"pr_number": 49745,
"author": "danieldspx",
"headCommitAbbrOid": "2039838",
"headCommitOid": "2039838c12c53ec88ba4b02f091a302d83de44af",
"lastPushDate": "2020-11-25T00:08:48.000Z",
"lastActivityDate": "2020-11-25T00:10:36.000Z",
"maintainerBlessed": false,
"hasMergeConflict": false,
"isFirstContribution": true,
"popularityLevel": "Well-liked by everyone",
"pkgInfo": [
{
"name": "mercadopago",
"kind": "add",
"files": [
{
"path": "types/mercadopago/configuration.d.ts",
"kind": "definition"
},
{
"path": "types/mercadopago/index.d.ts",
"kind": "definition"
},
{
"path": "types/mercadopago/mercadopago-tests.ts",
"kind": "test"
},
{
"path": "types/mercadopago/models/cards/create-payload.d.ts",
"kind": "definition"
},
{
"path": "types/mercadopago/models/cards/update-payload.d.ts",
"kind": "definition"
},
{
"path": "types/mercadopago/models/customers/create-payload.model.d.ts",
"kind": "definition"
},
{
"path": "types/mercadopago/models/customers/search-configuration.model.d.ts",
"kind": "definition"
},
{
"path": "types/mercadopago/models/customers/update-payload.model.d.ts",
"kind": "definition"
},
{
"path": "types/mercadopago/models/default-configuration.model.d.ts",
"kind": "definition"
},
{
"path": "types/mercadopago/models/merchantOrders/create-payload.d.ts",
"kind": "definition"
},
{
"path": "types/mercadopago/models/merchantOrders/update-payload.d.ts",
"kind": "definition"
},
{
"path": "types/mercadopago/models/payment/create-payload.model.d.ts",
"kind": "definition"
},
{
"path": "types/mercadopago/models/payment/update-payload.model.d.ts",
"kind": "definition"
},
{
"path": "types/mercadopago/models/preapproval/create-payload.model.d.ts",
"kind": "definition"
},
{
"path": "types/mercadopago/models/preapproval/update-payload.model.d.ts",
"kind": "definition"
},
{
"path": "types/mercadopago/models/preferences/create-payload.model.d.ts",
"kind": "definition"
},
{
"path": "types/mercadopago/models/preferences/update-payload.model.d.ts",
"kind": "definition"
},
{
"path": "types/mercadopago/resources/cards.d.ts",
"kind": "definition"
},
{
"path": "types/mercadopago/resources/customers.d.ts",
"kind": "definition"
},
{
"path": "types/mercadopago/resources/merchantOrders.d.ts",
"kind": "definition"
},
{
"path": "types/mercadopago/resources/payment.d.ts",
"kind": "definition"
},
{
"path": "types/mercadopago/resources/preapproval.d.ts",
"kind": "definition"
},
{
"path": "types/mercadopago/resources/preferences.d.ts",
"kind": "definition"
},
{
"path": "types/mercadopago/shared/address.d.ts",
"kind": "definition"
},
{
"path": "types/mercadopago/shared/currency.d.ts",
"kind": "definition"
},
{
"path": "types/mercadopago/shared/item.d.ts",
"kind": "definition"
},
{
"path": "types/mercadopago/shared/payer-identification.d.ts",
"kind": "definition"
},
{
"path": "types/mercadopago/shared/phone.d.ts",
"kind": "definition"
},
{
"path": "types/mercadopago/shared/types.d.ts",
"kind": "definition"
},
{
"path": "types/mercadopago/tsconfig.json",
"kind": "package-meta-ok"
},
{
"path": "types/mercadopago/tslint.json",
"kind": "package-meta-ok"
},
{
"path": "types/mercadopago/utils/mercadopago-respose.d.ts",
"kind": "definition"
}
],
"owners": [],
"addedOwners": [
"danieldspx"
],
"deletedOwners": [],
"popularityLevel": "Well-liked by everyone"
}
],
"reviews": [
{
"type": "stale",
"reviewer": "sheetalkamat",
"date": "2020-11-24T23:55:46.000Z",
"abbrOid": "9662a47"
},
{
"type": "stale",
"reviewer": "Gabrielpatrola",
"date": "2020-11-23T16:39:19.000Z",
"abbrOid": "8f7ee26"
}
],
"ciResult": "pass"
} |
|
🔔 @danieldspx — you're the only owner, but it would still be good if you find someone to review this PR in the next few days, otherwise a maintainer will look at it. (And if you do find someone, maybe even recruit them to be a second owner to make future changes easier...) |
|
Inspecting the JavaScript source for this package found some properties that are not in the .d.ts files. mercadopago (unpkg)was missing the following properties:
|
|
👋 Hi there! I’ve run some quick measurements against master and your PR. These metrics should help the humans reviewing this PR gauge whether it might negatively affect compile times or editor responsiveness for users who install these typings. Let’s review the numbers, shall we? These typings are for a package that doesn’t yet exist on master, so I don’t have anything to compare against yet! In the future, I’ll be able to compare PRs to mercadopago with its source on master. Comparison details 📊
|
|
@danieldspx One or more reviewers has requested changes. Please address their comments. I'll be back once they sign off or you've pushed new commits or comments. If you disagree with the reviewer's comments, you can "dismiss" the review using GitHub's review UI. Thank you! |
… preventing with namespace and update tests to reflect thosechanges
|
@sheetalkamat, @Gabrielpatrola Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review? |
|
@danieldspx One or more reviewers has requested changes. Please address their comments. I'll be back once they sign off or you've pushed new commits or comments. If you disagree with the reviewer's comments, you can "dismiss" the review using GitHub's review UI. Thank you! |
|
@danieldspx One or more reviewers has requested changes. Please address their comments. I'll be back once they sign off or you've pushed new commits or comments. If you disagree with the reviewer's comments, you can "dismiss" the review using GitHub's review UI. Thank you! |
|
I just published |
…ped#49745) * feat: add `mercadopago` main types * feat: add tests and tsconfig/tslint files * fix: tslint fixes * fix: remove tslint.json rules turned off, fix the problem that it was preventing with namespace and update tests to reflect thosechanges * fix: add new-line at the end of file * fix: use string literal unions instead of enum * fix: create interface and export obj of that interface
Please fill in this template.
npm test <package to test>.Select one of these and delete the others:
If adding a new definition:
.d.tsfiles generated via--declarationtslint.jsonshould be present and it shouldn't have any additional or disabling of rules. Just content as{ "extends": "dtslint/dt.json" }. If for reason the some rule need to be disabled, disable it for that line using// tslint:disable-next-line [ruleName]and not for whole package so that the need for disabling can be reviewed.tsconfig.jsonshould havenoImplicitAny,noImplicitThis,strictNullChecks, andstrictFunctionTypesset totrue.When we merged, this PR will resolve mercadopago/sdk-nodejs#190