npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@innofulfill/coupon-components

v0.0.9

Published

This coupon library is used in those applications that support npm packages. It works like creating, editing, viewing, deleting, and active Or inactive coupons. and view coupon redeem history and details view.

Downloads

65

Readme

Description

This coupon library is used in those applications that support npm packages. It works like creating, editing, viewing, deleting, and active Or inactive coupons. and view coupon redeem history and details view.

CLI Command List

Install with npm  
$npm install @innofulfill/coupon-components.

Uses Sample

import { CouponComponents } from ‘@innofulfill/coupon-components’
This library is used to mention the code example below and its all function input-output.
<couponComponents  [cityDataList]="cityList" (selectCityEvent)="onSelectCity($event)"
       (onSubmitEvent)="onCouponSave($event)"  [couponList]="couponListData"
       [couponDetailsList]="couponListDetails" [couponHistoryData]="couponHistoryList" 
       [couponHistoryDetailsData]="couponHistoryDetails"  [isCreatedCoupon]="isCreatedCoupon"   
       (couponListAction)="onActionSelect($event)" 
 </couponComponents>

Properties

  1. @Input() cityDataList: any; This input method can show data in the city select dropdown. Reference:[{ "state": "Gujarat","city": "Ahmedabad" },{ "state":"Chandigarh", "city": "Chandigarh" } ]
  2. @Input() couponList: COUPON_DTO;
    This input method is used to show the coupon list—data in ArrayOfObject. Reference Data: [{ _id?: string; cities?: []; title?: string; type?: string; redeemType?: string; discount?: number; maxDiscount?: number; minAmount?: number;startDate?: string; endDate?: string; isActive?: boolean; termAndCondition?: string;}].
  3. @Input() couponDetailsList: COUPON_DTO This input method is used to show the coupon details view.Pass data as an object. Reference Data:{ _id?: string; cities?: []; title?: string; type?: string; redeemType?: string; discount?: number; maxDiscount?: number; minAmount?: number; startDate?: string; endDate?: string; isActive?: boolean; termAndCondition?: string;}.
  4. @Input() couponHistoryData: COUPON_HISTORY_DTO; This input method is used to show the coupon History list. Reference Data:[{ _id?: string; couponCode?:string; couponTitle?: string; customerName?:string; orderId?: string; couponType?: string; redeemType?:string; createdDate?: string; termAndCondition?: string;}]
  5. @Input() couponHistoryDetailsData: COUPON_HISTORY_DTO; This input method is used to show the couponHistory in  details view.Pass data as an object. Reference Data:[{ _id?: string; couponCode?:string; couponTitle?: string; customerName?: string; orderId?: string; couponType?: string; redeemType?:string; createdDate?: string; termAndCondition?: string;}]

Events

  1. @Output() couponListAction= new EventEmitter() This function is used to get table row data and returns the mentioned event. Return object:{action:'view|edit|delete|Active|InActive ', data:''}

  2. @Output() onSubmitEvent = new EventEmitter() This event returns the Coupon creation Object mentioned below object. Return object: {"cities": ["Ahmedabad","Rajkot"], "title": "Gift Coupon", "code": "GIFT013", "type": "FLAT_AMOUNT  | PERCENTAGE", "redeemType": "FIRST_TIME|  MULTI_TIME", "discount": 100, "maxDiscount": 100, "minAmount": 100, "startDate": "2024-02-11T15:57:53.485Z", "endDate": "2024-02-11T15:57:53.485Z", "termAndCondition": "Get a flat amount - 100 rupees of on minimum order delivery amount of 1000", "isActive": true | false}

  3. @Output() selectCityEvent = new EventEmitter(); This event emit is return the cityObejct. Return object: { "state": "Chandigarh", "city": "Chandigarh" }